Home
last modified time | relevance | path

Searched refs:__state_ (Results 1 – 15 of 15) sorted by relevance

/external/llvm-project/libcxx/src/
Dfuture.cpp96 __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()
[all …]
Dshared_mutex.cpp21 : __state_(0) in __shared_mutex_base()
31 while (__state_ & __write_entered_) in lock()
33 __state_ |= __write_entered_; in lock()
34 while (__state_ & __n_readers_) in lock()
42 if (__state_ == 0) in try_lock()
44 __state_ = __write_entered_; in try_lock()
54 __state_ = 0; in unlock()
64 while ((__state_ & __write_entered_) || (__state_ & __n_readers_) == __n_readers_) in lock_shared()
66 unsigned num_readers = (__state_ & __n_readers_) + 1; in lock_shared()
67 __state_ &= ~__n_readers_; in lock_shared()
[all …]
/external/libcxx/src/
Dfuture.cpp97 __state_ |= __constructed | ready; in set_value()
107 __state_ |= __constructed; in set_value_at_thread_exit()
118 __state_ |= ready; in set_exception()
136 __state_ |= ready; in __make_ready()
161 if (__state_ & static_cast<unsigned>(deferred)) in __sub_wait()
163 __state_ &= ~static_cast<unsigned>(deferred); in __sub_wait()
180 : __state_(__state) in future()
182 __state_->__attach_future(); in future()
187 if (__state_) in ~future()
188 __state_->__release_shared(); in ~future()
[all …]
Dshared_mutex.cpp19 : __state_(0) in __shared_mutex_base()
29 while (__state_ & __write_entered_) in lock()
31 __state_ |= __write_entered_; in lock()
32 while (__state_ & __n_readers_) in lock()
40 if (__state_ == 0) in try_lock()
42 __state_ = __write_entered_; in try_lock()
52 __state_ = 0; in unlock()
62 while ((__state_ & __write_entered_) || (__state_ & __n_readers_) == __n_readers_) in lock_shared()
64 unsigned num_readers = (__state_ & __n_readers_) + 1; in lock_shared()
65 __state_ &= ~__n_readers_; in lock_shared()
[all …]
/external/llvm-project/libcxx/include/
Dfuture535 unsigned __state_;
549 __assoc_sub_state() : __state_(0) {}
553 {return (__state_ & __constructed) || (__exception_ != nullptr);}
558 bool __has_future_attached = (__state_ & __future_attached) != 0;
562 __state_ |= __future_attached;
566 void __set_deferred() {__state_ |= deferred;}
570 bool __is_ready() const {return (__state_ & ready) != 0;}
598 if (__state_ & deferred)
600 while (!(__state_ & ready) && _Clock::now() < __abs_time)
602 if (__state_ & ready)
[all …]
Dshared_mutex153 unsigned __state_;
255 if (__base.__state_ & __base.__write_entered_)
260 if ((__base.__state_ & __base.__write_entered_) == 0)
266 __base.__state_ |= __base.__write_entered_;
267 if (__base.__state_ & __base.__n_readers_)
272 if ((__base.__state_ & __base.__n_readers_) == 0)
276 __base.__state_ &= ~__base.__write_entered_;
291 …if ((__base.__state_ & __base.__write_entered_) || (__base.__state_ & __base.__n_readers_) == __ba…
296 if ((__base.__state_ & __base.__write_entered_) == 0 &&
297 … (__base.__state_ & __base.__n_readers_) < __base.__n_readers_)
[all …]
Dmutex577 once_flag() _NOEXCEPT : __state_(0) {}
590 _State_type __state_;
670 if (__libcpp_acquire_load(&__flag.__state_) != ~once_flag::_State_type(0))
675 __call_once(__flag.__state_, &__p, &__call_once_proxy<_Gp>);
686 if (__libcpp_acquire_load(&__flag.__state_) != ~once_flag::_State_type(0))
689 __call_once(__flag.__state_, &__p, &__call_once_proxy<_Callable>);
698 if (__libcpp_acquire_load(&__flag.__state_) != ~once_flag::_State_type(0))
701 __call_once(__flag.__state_, &__p, &__call_once_proxy<const _Callable>);
Dfilesystem1291 __state_(_Singular) {}
1306 _LIBCPP_ASSERT(__state_ != _Singular,
1308 _LIBCPP_ASSERT(__state_ != _AtEnd,
1322 _LIBCPP_ASSERT(__state_ != _Singular,
1348 _ParserState __state_;
/external/libcxx/include/
Dfuture538 unsigned __state_;
552 __assoc_sub_state() : __state_(0) {}
556 {return (__state_ & __constructed) || (__exception_ != nullptr);}
561 bool __has_future_attached = (__state_ & __future_attached) != 0;
565 __state_ |= __future_attached;
569 void __set_deferred() {__state_ |= deferred;}
573 bool __is_ready() const {return (__state_ & ready) != 0;}
601 if (__state_ & deferred)
603 while (!(__state_ & ready) && _Clock::now() < __abs_time)
605 if (__state_ & ready)
[all …]
Dshared_mutex153 unsigned __state_;
255 if (__base.__state_ & __base.__write_entered_)
260 if ((__base.__state_ & __base.__write_entered_) == 0)
266 __base.__state_ |= __base.__write_entered_;
267 if (__base.__state_ & __base.__n_readers_)
272 if ((__base.__state_ & __base.__n_readers_) == 0)
276 __base.__state_ &= ~__base.__write_entered_;
291 …if ((__base.__state_ & __base.__write_entered_) || (__base.__state_ & __base.__n_readers_) == __ba…
296 if ((__base.__state_ & __base.__write_entered_) == 0 &&
297 … (__base.__state_ & __base.__n_readers_) < __base.__n_readers_)
[all …]
Dmutex577 once_flag() _NOEXCEPT : __state_(0) {}
583 unsigned long __state_;
662 if (__libcpp_acquire_load(&__flag.__state_) != ~0ul)
667 __call_once(__flag.__state_, &__p, &__call_once_proxy<_Gp>);
678 if (__libcpp_acquire_load(&__flag.__state_) != ~0ul)
681 __call_once(__flag.__state_, &__p, &__call_once_proxy<_Callable>);
690 if (__libcpp_acquire_load(&__flag.__state_) != ~0ul)
693 __call_once(__flag.__state_, &__p, &__call_once_proxy<const _Callable>);
Dfilesystem1243 __state_(_Singular) {}
1258 _LIBCPP_ASSERT(__state_ != _Singular,
1260 _LIBCPP_ASSERT(__state_ != _AtEnd,
1274 _LIBCPP_ASSERT(__state_ != _Singular,
1300 _ParserState __state_;
/external/llvm-project/libcxx/src/filesystem/
Doperations.cpp1625 it.__state_ = static_cast<path::iterator::_ParserState>(PP.State); in begin()
1633 it.__state_ = path::iterator::_AtEnd; in end()
1639 PathParser PP(__path_ptr_->native(), __entry_, __state_); in __increment()
1641 __state_ = static_cast<_ParserState>(PP.State); in __increment()
1648 PathParser PP(__path_ptr_->native(), __entry_, __state_); in __decrement()
1650 __state_ = static_cast<_ParserState>(PP.State); in __decrement()
/external/libcxx/src/filesystem/
Doperations.cpp1627 it.__state_ = static_cast<path::iterator::_ParserState>(PP.State); in begin()
1635 it.__state_ = path::iterator::_AtEnd; in end()
1641 PathParser PP(__path_ptr_->native(), __entry_, __state_); in __increment()
1643 __state_ = static_cast<_ParserState>(PP.State); in __increment()
1650 PathParser PP(__path_ptr_->native(), __entry_, __state_); in __decrement()
1652 __state_ = static_cast<_ParserState>(PP.State); in __decrement()
/external/llvm-project/clang/test/Analysis/
Dcall_once.cpp34 unsigned long __state_ = 0; member