Searched refs:atomic_compare_exchange_weak (Results 1 – 7 of 7) sorted by relevance
/bionic/libc/bionic/ |
D | pthread_detach.cpp | 42 !atomic_compare_exchange_weak(&thread->join_state, &old_state, THREAD_DETACHED)) { in pthread_detach()
|
D | pthread_join.cpp | 46 !atomic_compare_exchange_weak(&thread->join_state, &old_state, THREAD_JOINED)) { in pthread_join()
|
D | semaphore.cpp | 155 } while (!atomic_compare_exchange_weak(sem_count_ptr, &old_value, in __sem_dec() 175 } while (!atomic_compare_exchange_weak(sem_count_ptr, &old_value, in __sem_trydec() 208 } while (!atomic_compare_exchange_weak(sem_count_ptr, &old_value, in __sem_inc()
|
D | pthread_exit.cpp | 96 !atomic_compare_exchange_weak(&thread->join_state, &old_state, THREAD_EXITED_NOT_JOINED)) { in pthread_exit()
|
D | pthread_key.cpp | 122 if (atomic_compare_exchange_weak(&key_map[i].seq, &seq, seq + SEQ_INCREMENT_STEP)) { in pthread_key_create()
|
/bionic/tests/ |
D | stdatomic_test.cpp | 128 ASSERT_TRUE(atomic_compare_exchange_weak(&i, &expected, 456)); in TEST() 129 ASSERT_FALSE(atomic_compare_exchange_weak(&i, &expected, 456)); in TEST()
|
/bionic/libc/include/ |
D | stdatomic.h | 80 using std::atomic_compare_exchange_weak; 515 #define atomic_compare_exchange_weak(object, expected, desired) \ macro
|