about summary refs log tree commit diff
path: root/REORG.TODO/benchtests/pthread_once-inputs
diff options
context:
space:
mode:
Diffstat (limited to 'REORG.TODO/benchtests/pthread_once-inputs')
-rw-r--r--REORG.TODO/benchtests/pthread_once-inputs9
1 files changed, 9 insertions, 0 deletions
diff --git a/REORG.TODO/benchtests/pthread_once-inputs b/REORG.TODO/benchtests/pthread_once-inputs
new file mode 100644
index 0000000000..22c57096f7
--- /dev/null
+++ b/REORG.TODO/benchtests/pthread_once-inputs
@@ -0,0 +1,9 @@
+# This tests the common-case scenario for pthread_once.
+# We have a single thread that runs a no-op initialization once and then
+# repeatedly runs checks of the initialization (i.e., an acquire load and
+# conditional jump) in a tight loop.
+# scripts/bench.py doesn't handle function pointers, so we just use void *:
+## args: pthread_once_t *:void *
+## includes: pthread.h
+## include-sources: pthread_once-source.c
+&once, once_handler