Commit 58498c74 authored by Bradley C. Kuszmaul's avatar Bradley C. Kuszmaul

Measure some more locking primitives.

git-svn-id: file:///svn/tokudb@5498 c7de825b-a66e-492c-adef-691d508d4ae1
parent 5acec5f8
......@@ -84,7 +84,7 @@ compare_and_swap_full_i(volatile int *addr,
int old, int new_val)
{
char result;
__asm__ __volatile__("lock; cmpxchgl %2, %0; setz %1"
__asm__ __volatile__("lock; cmpxchg %2, %0; setz %1"
: "+m"(*(addr)), "=q"(result)
: "r" (new_val), "a"(old) : "memory");
return (int) result;
......
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