Opened 3 years ago

Closed 3 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 Changed 3 years ago by viboes

Owner: changed from Anthony Williams to viboes
Status: newassigned

comment:3 Changed 3 years ago by viboes

Resolution: fixed
Status: assignedclosed

4321b59c1eedde71da58f592aa4c741a1feff046

Note: See TracTickets for help on using tickets.