Home
last modified time | relevance | path

Searched refs:cas (Results 1 – 2 of 2) sorted by relevance

/system/ulib/sync/include/lib/sync/internal/
A Dcondition-template.h61 static inline bool cas(int* ptr, int* expected, int desired) { in cas() function
133 if (cas(&node.state, &oldstate, LEAVING)) { in timedwait()
254 if (!cas(&p->state, &oldstate, SIGNALED)) { in signal()
/system/utest/fbl/
A Datomic_tests.cpp1076 for (auto cas : cas_functions<T>) { in compare_exchange_test() local
1085 EXPECT_FALSE(cas.function(&atomic_value, &expected, desired, in compare_exchange_test()
1097 bool succeeded = cas.function(&atomic_value, &expected, desired, in compare_exchange_test()
1099 if (!cas.can_spuriously_fail) { in compare_exchange_test()
1108 for (auto cas : volatile_cas_functions<T>) { in compare_exchange_test() local
1117 EXPECT_FALSE(cas.function(&atomic_value, &expected, desired, in compare_exchange_test()
1130 bool succeeded = cas.function(&atomic_value, &expected, desired, in compare_exchange_test()
1132 if (!cas.can_spuriously_fail) { in compare_exchange_test()

Completed in 8 milliseconds