Title
Clarify observable side effects of releasing a shared state
Status
open
Section
[futures.state]
Submitter
Agustín K-ballo Bergé

Created on 2015-09-03.00:00:00 last changed 93 months ago

Messages

Date: 2016-08-03.00:00:00

[ 2016-08-03 Chicago ]

This is related to 2532

Fri AM: Moved to Open

Date: 2015-09-03.00:00:00

When a shared-state is released, it may be necessary to execute user defined code for the destructor of a stored value or exception. It is unclear whether the execution of said destructor constitutes an observable side effect.

While discussing N4445 in Lenexa, Nat Goodspeed pointed out that [futures.state]/5.1 does not explicitly mention the destruction of the result, so implementations should be allowed to release (or reuse) a shared state ahead of time under the "as-if" rule.

The standard should clarify whether the execution of destructors is a visible side effect of releasing a shared state.

History
Date User Action Args
2016-08-06 20:44:18adminsetmessages: + msg8434
2016-08-06 20:44:18adminsetstatus: new -> open
2015-09-03 00:00:00admincreate