Opened 4 years ago

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

Owner: changed from Anthony Williams to viboes
Status: newassigned

comment:2 Changed 4 years ago by viboes

Type: Feature RequestsBugs

Set as Bug as otherwise this is not an optimization.

comment:4 Changed 4 years ago by viboes

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

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