Home
last modified time | relevance | path

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

/freebsd-14-stable/contrib/llvm-project/compiler-rt/lib/sanitizer_common/
HDsanitizer_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 …]
HDsanitizer_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()
HDsanitizer_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()
HDsanitizer_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()
HDsanitizer_symbolizer_libbacktrace.h43 explicit LibbacktraceSymbolizer(void *state) : state_(state) {} in LibbacktraceSymbolizer()
45 void *state_; // Leaked. variable
/freebsd-14-stable/contrib/googletest/googletest/test/
HDgtest-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 …]
/freebsd-14-stable/contrib/lutok/
HDstack_cleaner.cpp62 lutok::stack_cleaner::stack_cleaner(state& state_) : in stack_cleaner() argument
63 _pimpl(new impl(state_, state_.get_top())) in stack_cleaner()
HDc_gate.cpp37 lutok::state_c_gate::state_c_gate(state& state_) : in state_c_gate() argument
38 _state(state_) in state_c_gate()
HDtest_utils.hpp110 stack_balance_checker(lutok::state& state_, in stack_balance_checker() argument
112 _state(state_), in stack_balance_checker()
HDexceptions.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()
/freebsd-14-stable/contrib/googletest/googlemock/include/gmock/
HDgmock-actions.h962 : state_(new State(std::move(input_value))) {}
966 explicit Impl(const R& input_value) : state_(new State(input_value)) {}
968 U operator()() && { return std::move(state_->value); }
969 U operator()() const& { return state_->value; }
1082 const std::shared_ptr<State> state_;
1097 : state_(new State(std::move(wrapper.payload))) {}
1100 GTEST_CHECK_(!state_->called)
1103 state_->called = true;
1104 return std::move(state_->value);
1117 const std::shared_ptr<State> state_;
[all …]
/freebsd-14-stable/contrib/googletest/googletest/include/gtest/internal/
HDgtest-internal.h853 explicit Random(uint32_t seed) : state_(seed) {} in Random()
855 void Reseed(uint32_t seed) { state_ = seed; } in Reseed()
862 uint32_t state_;
/freebsd-14-stable/contrib/googletest/googletest/src/
HDgtest.cc408 state_ = static_cast<uint32_t>(1103515245ULL * state_ + 12345U) % kMaxRange; in Generate()
418 return state_ % range; in Generate()