Opened 8 years ago

Last modified 7 years ago

#11052 assigned Feature Requests

Make all executors copyable pointing to a shared context

Reported by: viboes Owned by: viboes
Milestone: To Be Determined Component: thread
Version: Boost 1.57.0 Severity: Problem
Keywords: Cc:

Description

Ensuring that the lifetime of an executor is longer than the continuations could be hard for the user.

In particular, the tests add a sleep for to ensure it. This is not robust enough.

Change History (3)

comment:1 by viboes, 8 years ago

Summary: Make all executors copyable poining to a shared contextMake all executors copyable pointing to a shared context
Type: BugsFeature Requests

comment:2 by viboes, 8 years ago

Owner: changed from Anthony Williams to viboes
Status: newassigned

comment:3 by viboes, 7 years ago

This branch https://github.com/boostorg/thread/tree/feature/make_executors_copyable implements copyable executors that point to a shared memory ensuring that the executor is destroyed only when there is no more references to it.

Note: See TracTickets for help on using tickets.