Lines Matching refs:__state_

96     __state_ |= __constructed | ready;  in set_value()
106 __state_ |= __constructed; in set_value_at_thread_exit()
117 __state_ |= ready; in set_exception()
135 __state_ |= ready; in __make_ready()
160 if (__state_ & static_cast<unsigned>(deferred)) in __sub_wait()
162 __state_ &= ~static_cast<unsigned>(deferred); in __sub_wait()
179 : __state_(__state) in future()
181 __state_->__attach_future(); in future()
186 if (__state_) in ~future()
187 __state_->__release_shared(); in ~future()
193 unique_ptr<__shared_count, __release_shared_count> __(__state_); in get()
194 __assoc_sub_state* __s = __state_; in get()
195 __state_ = nullptr; in get()
200 : __state_(new __assoc_sub_state) in promise()
206 if (__state_) in ~promise()
209 if (!__state_->__has_value() && __state_->use_count() > 1) in ~promise()
210 __state_->set_exception(make_exception_ptr( in ~promise()
214 __state_->__release_shared(); in ~promise()
221 if (__state_ == nullptr) in get_future()
223 return future<void>(__state_); in get_future()
229 if (__state_ == nullptr) in set_value()
231 __state_->set_value(); in set_value()
237 if (__state_ == nullptr) in set_exception()
239 __state_->set_exception(__p); in set_exception()
245 if (__state_ == nullptr) in set_value_at_thread_exit()
247 __state_->set_value_at_thread_exit(); in set_value_at_thread_exit()
253 if (__state_ == nullptr) in set_exception_at_thread_exit()
255 __state_->set_exception_at_thread_exit(__p); in set_exception_at_thread_exit()
260 if (__state_) in ~shared_future()
261 __state_->__release_shared(); in ~shared_future()
267 if (__rhs.__state_) in operator =()
268 __rhs.__state_->__add_shared(); in operator =()
269 if (__state_) in operator =()
270 __state_->__release_shared(); in operator =()
271 __state_ = __rhs.__state_; in operator =()