Title
Synchronization between promise::set_value and future::get
Status
resolved
Section
[futures.promise]
Submitter
INCITS

Created on 2010-08-25.00:00:00 last changed 164 months ago

Messages

Date: 2011-05-21.21:15:19

Proposed resolution:

Resolved 2001-03 Madrid by issue 1507.

Date: 2011-06-02.15:28:39

Proposed resolution:

Resolved 2001-03 Madrid by issue 1507.

Date: 2011-03-19.00:00:00

[ 2011-03-19: Detlef comments ]

The proposed resolution for 1507 would cover this issue as well. Effectively it will reject the request but a clarification is added that the normative wording is already in [futures.state].

  1. Change [futures.promise] p. 21 as indicated:

    21 Synchronization: calls to set_value and set_exception on a single promise object are serialized. [ Note: and they synchronize and serialize with other functions through the referred associated asynchronous state. — end note ]They synchronize with ([intro.multithread]) any operation on a future object with the same associated asynchronous state marked ready.

  2. Change [futures.promise] p. 25 as indicated:

    25 Synchronization: calls to set_value and set_exception on a single promise object are serialized. [ Note: and they synchronize and serialize with other functions through the referred associated asynchronous state. — end note ]They synchronize with ([intro.multithread]) any operation on a future object with the same associated asynchronous state marked ready.

Date: 2010-11-02.00:00:00

[ 2010-11-02 Daniel translates proposal into proper wording changes ]

Date: 2010-11-02.20:27:27

[ Resolution proposed by ballot comment: ]

Replace "[Note: and they synchronize and serialize with other functions through the referred associated asynchronous state. — end note]" with the normative "They synchronize with (1.10) any operation on a future object with the same associated asynchronous state marked ready."

Date: 2010-11-02.20:27:27

Addresses US-197

There is no defined synchronization between promise::set_value and future::get ([futures.promise] p. 21, 25).

History
Date User Action Args
2011-05-21 21:15:19adminsetmessages: + msg5792
2011-05-21 21:15:19adminsetstatus: open -> resolved
2011-03-20 11:33:07adminsetmessages: + msg5660
2010-11-02 20:27:27adminsetmessages: + msg5267
2010-11-02 20:27:27adminsetmessages: + msg5266
2010-11-02 20:27:27adminsetmessages: + msg5265
2010-10-24 16:08:33adminsetmessages: + msg5045
2010-08-25 00:00:00admincreate