Home
last modified time | relevance | path

Searched refs:state_ (Results 1 – 13 of 13) sorted by relevance

/src/contrib/llvm-project/compiler-rt/lib/sanitizer_common/
H A Dsanitizer_mutex.h26 atomic_store(&state_, 0, memory_order_relaxed); in Init()
36 return atomic_exchange(&state_, 1, memory_order_acquire) == 0; in TryLock()
40 atomic_store(&state_, 0, memory_order_release); in Unlock()
44 CHECK_EQ(atomic_load(&state_, memory_order_relaxed), 1); in CheckLocked()
48 atomic_uint8_t state_;
76 atomic_uint32_t state_ = {0};
169 u64 state = atomic_load_relaxed(&state_); in Lock()
186 state = atomic_load(&state_, memory_order_relaxed); in Lock()
189 if (UNLIKELY(!atomic_compare_exchange_weak(&state_, &state, new_state, in Lock()
206 state = atomic_load(&state_, memory_order_relaxed); in Lock()
[all …]
H A Dsanitizer_stackdepot.cpp119 State state_ SANITIZER_GUARDED_BY(mutex_) = State::NotStarted;
132 if (state_ == State::NotStarted) { in NewWorkNotify()
141 state_ = thread_ ? State::Started : State::Failed; in NewWorkNotify()
143 if (state_ == State::Started) { in NewWorkNotify()
161 if (state_ != State::Started) in Stop()
163 state_ = State::Stopped; in Stop()
175 if (state_ != State::Started) in LockAndStop()
183 state_ = State::NotStarted; in LockAndStop()
H A Dsanitizer_mutex.cpp25 if (atomic_load(&state_, memory_order_relaxed) == 0 && in LockSlow()
26 atomic_exchange(&state_, 1, memory_order_acquire) == 0) in LockSlow()
32 u32 count = atomic_load(&state_, memory_order_relaxed); in Wait()
35 FutexWait(&state_, 0); in Wait()
36 count = atomic_load(&state_, memory_order_relaxed); in Wait()
39 if (atomic_compare_exchange_weak(&state_, &count, count - 1, in Wait()
47 atomic_fetch_add(&state_, count, memory_order_release); in Post()
48 FutexWake(&state_, count); in Post()
H A Dsanitizer_symbolizer_libbacktrace.cpp163 backtrace_pcinfo((backtrace_state *)state_, addr, SymbolizeCodePCInfoCallback, in SymbolizePC()
167 backtrace_syminfo((backtrace_state *)state_, addr, SymbolizeCodeCallback, in SymbolizePC()
173 backtrace_syminfo((backtrace_state *)state_, addr, SymbolizeDataCallback, in SymbolizeData()
185 (void)state_; in SymbolizePC()
H A Dsanitizer_symbolizer_libbacktrace.h43 explicit LibbacktraceSymbolizer(void *state) : state_(state) {} in LibbacktraceSymbolizer()
45 void *state_; // Leaked. variable
/src/contrib/googletest/googletest/test/
H A Dgtest-typed-test_test.cc203 state_.AddTestName("foo.cc", 0, "FooTest", "A"); in SetUp()
204 state_.AddTestName("foo.cc", 0, "FooTest", "B"); in SetUp()
205 state_.AddTestName("foo.cc", 0, "FooTest", "C"); in SetUp()
208 TypedTestSuitePState state_; member in TypedTestSuitePStateTest
214 state_.VerifyRegisteredTestNames("Suite", "foo.cc", 1, tests)); in TEST_F()
222 state_.VerifyRegisteredTestNames("Suite", "foo.cc", 1, tests)); in TEST_F()
229 state_.VerifyRegisteredTestNames("Suite", "foo.cc", 1, "A, B, A, C"), in TEST_F()
235 state_.VerifyRegisteredTestNames("Suite", "foo.cc", 1, "A, B, C, D"), in TEST_F()
241 state_.VerifyRegisteredTestNames("Suite", "foo.cc", 1, "A, C"), in TEST_F()
248 state_.VerifyRegisteredTestNames("Suite", "foo.cc", 1, "A, B, C"); in TEST_F()
[all …]
/src/contrib/lutok/
H A Dstack_cleaner.cpp62 lutok::stack_cleaner::stack_cleaner(state& state_) : in stack_cleaner() argument
63 _pimpl(new impl(state_, state_.get_top())) in stack_cleaner()
H A Dc_gate.cpp37 lutok::state_c_gate::state_c_gate(state& state_) : in state_c_gate() argument
38 _state(state_) in state_c_gate()
H A Dtest_utils.hpp110 stack_balance_checker(lutok::state& state_, in stack_balance_checker() argument
112 _state(state_), in stack_balance_checker()
H A Dexceptions.cpp81 lutok::api_error::from_stack(state& state_, const std::string& api_function_) in from_stack() argument
83 lua_State* raw_state = lutok::state_c_gate(state_).c_state(); in from_stack()
/src/contrib/googletest/googlemock/include/gmock/
H A Dgmock-actions.h966 : state_(new State(std::move(input_value))) {}
970 explicit Impl(const R& input_value) : state_(new State(input_value)) {}
972 U operator()() && { return std::move(state_->value); }
973 U operator()() const& { return state_->value; }
1086 const std::shared_ptr<State> state_;
1101 : state_(new State(std::move(wrapper.payload))) {}
1104 GTEST_CHECK_(!state_->called)
1107 state_->called = true;
1108 return std::move(state_->value);
1121 const std::shared_ptr<State> state_;
[all …]
/src/contrib/googletest/googletest/include/gtest/internal/
H A Dgtest-internal.h845 explicit Random(uint32_t seed) : state_(seed) {} in Random()
847 void Reseed(uint32_t seed) { state_ = seed; } in Reseed()
854 uint32_t state_;
/src/contrib/googletest/googletest/src/
H A Dgtest.cc420 state_ = static_cast<uint32_t>(1103515245ULL * state_ + 12345U) % kMaxRange; in Generate()
430 return state_ % range; in Generate()