Changeset 8e24583 in mainline for uspace/lib/cpp/include/__bits/thread/future.hpp
- Timestamp:
- 2019-07-03T16:59:49Z (5 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 46c66f8
- Parents:
- 96fec16
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/cpp/include/__bits/thread/future.hpp
r96fec16 r8e24583 101 101 state_ = move(rhs.state_); 102 102 rhs.state_ = nullptr; 103 104 return *this; 103 105 } 104 106 … … 183 185 184 186 future(future&& rhs) noexcept 185 : aux::future_base<aux::future_inner_t<R>>{move(rhs .state_)}187 : aux::future_base<aux::future_inner_t<R>>{move(rhs)} 186 188 { /* DUMMY BODY */ } 187 189 … … 220 222 } 221 223 } 224 225 /** 226 * Useful for testing as we can check some information 227 * otherwise unavailable to us without waiting, e.g. 228 * to check whether the state is ready, its reference 229 * count etc. 230 */ 231 aux::shared_state<aux::future_inner_t<R>>* __state() noexcept 232 { 233 return this->state_; 234 } 222 235 }; 223 236 }
Note:
See TracChangeset
for help on using the changeset viewer.