Opened 7 years ago

Closed 7 years ago

#11262 closed Bugs (fixed)

bad use of direct pointer in shared_state_nullary_task

Reported by: viboes Owned by: viboes
Milestone: Boost 1.60.0 Component: thread
Version: Boost 1.58.0 Severity: Problem
Keywords: Cc:

Description

shared_state_nullary_task stores a direct pointer to a shared_state. It must use instead a shared_pointer to avoid lifetime issues.

This class is used in async(Ex, f) and future::then(ex,f). As far as the resulting future blocks on the constructor the lifetime issue is not easy to reproduce.

Change History (3)

comment:1 by viboes, 7 years ago

Owner: changed from Anthony Williams to viboes
Status: newassigned

comment:3 by viboes, 7 years ago

Resolution: fixed
Status: assignedclosed

4321b59c1eedde71da58f592aa4c741a1feff046

Note: See TracTickets for help on using tickets.