Opened 8 years ago

Closed 8 years ago

#10968 closed Bugs (fixed)

The futures returned by async() and future::then() are not blocking

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

Description

Instead of blocking on the future destructor they block on the destructor of the shared state.

Change History (6)

comment:1 by viboes, 8 years ago

This branch contains fixes https://github.com/boostorg/thread/tree/fix/blocking_future.

I have found a lot of issues on the current implementation and most of them are fixed now (well at least I think so), however I have yet some issues with shared_future::then.

comment:2 by viboes, 8 years ago

Owner: changed from Anthony Williams to viboes
Status: newassigned

comment:3 by viboes, 8 years ago

The issues with shared_future::then have been solved. However the fallback_to test fails often.

comment:4 by viboes, 8 years ago

Milestone: To Be DeterminedBoost 1.58.0

I have reached to fix the remaining issues. The future shared_state was destroyed while been locked. In order to avoid the destruction a centinel has been added.

comment:6 by viboes, 8 years ago

Resolution: fixed
Status: assignedclosed
Note: See TracTickets for help on using tickets.