Opened 8 years ago

Closed 8 years ago

#10427 closed Bugs (fixed)

Take in account the deferred and ready futures in when_any.

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

Description

Take in account this deferred and ready futures in when_any.

  • Each of the futures supplied to when_any is checked in the order supplied. If a given future is ready, then no further futures are checked, and the call to when_any returns immediately. If a given future refers to a deferred task that has not yet started execution, then no further futures are checked, that task is executed, and the call to when_any then returns immediately.

Change History (6)

comment:1 by viboes, 8 years ago

Owner: changed from Anthony Williams to viboes
Status: newassigned

comment:2 by viboes, 8 years ago

Type: Feature RequestsBugs

Set as Bug as otherwise this is not an optimization.

comment:4 by viboes, 8 years ago

Summary: Take in account this deferred and ready futures in when_any.Take in account the deferred and ready futures in when_any.

comment:6 by viboes, 8 years ago

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