Changeset 396b234 in mainline
- Timestamp:
- 2019-07-01T12:45:10Z (5 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 0f43be5
- Parents:
- cf279270
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/cpp/include/__bits/thread/promise.hpp
rcf279270 r396b234 107 107 void abandon_state_() 108 108 { 109 if (!state_) 110 return; 111 109 112 /** 110 113 * Note: This is the 'abandon' move described in … … 116 119 * 2) Release the state. 117 120 */ 121 122 if (!state_->is_set()) 123 { 124 // TODO: Store future_error. 125 state_->mark_set(true); 126 } 127 128 if (state_->decrement()) 129 { 130 state_->destroy(); 131 delete state_; 132 state_ = nullptr; 133 } 118 134 } 119 135
Note:
See TracChangeset
for help on using the changeset viewer.