Commit 3e024139 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@11676 c7de825b-a66e-492c-adef-691d508d4ae1
parent c2a17a61
......@@ -62,7 +62,7 @@ static inline void sfence (void) {
int lock_for_lock_and_unlock;
static inline void lock_and_unlock (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