Commit 0aeee2dc authored by Bradley C. Kuszmaul's avatar Bradley C. Kuszmaul Committed by Yoni Fogel

Add a test for the {{{__sync_lock_test_and_set}}} intrinsic. Refs #1738.

git-svn-id: file:///svn/toku/tokudb@11677 c7de825b-a66e-492c-adef-691d508d4ae1
parent 720b51e9
......@@ -62,7 +62,7 @@ static inline void sfence (void) {
int lock_for_lock_and_unlock;
static inline void lock_and_unlock (void) {
(void*)__sync_lock_test_and_set(&lock_for_lock_and_unlock, 1);
(void)__sync_lock_test_and_set(&lock_for_lock_and_unlock, 1);
__sync_lock_release(&lock_for_lock_and_unlock);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment