1# This tests the common-case scenario for pthread_once.
2# We have a single thread that runs a no-op initialization once and then
3# repeatedly runs checks of the initialization (i.e., an acquire load and
4# conditional jump) in a tight loop.
5# scripts/bench.py doesn't handle function pointers, so we just use void *:
6## args: pthread_once_t *:void *
7## includes: pthread.h
8## include-sources: pthread_once-source.c
9&once, once_handler
10