Commit 78ebdd82 authored by Bradley C. Kuszmaul's avatar Bradley C. Kuszmaul Committed by Yoni Fogel

Add test for {{{sync_synchronize}}}. Refs #1738.

git-svn-id: file:///svn/toku/tokudb@11680 c7de825b-a66e-492c-adef-691d508d4ae1
parent 42eabaa0
......@@ -140,6 +140,14 @@ int main(int argc __attribute__((unused)), char **argv)
printf("sync_lock_release took %llu clocks\n", t_end-t_start);
}
{
t_start = rdtsc();
(void)__sync_synchronize();
t_end = rdtsc();
printf("sync_synchornize took %llu clocks\n", t_end-t_start);
}
t_start = rdtsc();
sleep(1);
t_end = rdtsc();
......
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