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 , 7 years ago
Owner: | changed from | to
---|---|
Status: | new → assigned |
comment:2 by , 7 years ago
Milestone: | To Be Determined → Boost 1.60.0 |
---|
comment:3 by , 7 years ago
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
4321b59c1eedde71da58f592aa4c741a1feff046
Note:
See TracTickets
for help on using tickets.
https://github.com/boostorg/thread/commit/ea9eb62802193654d3deee968b51b658b7005e6c