]> git.ipfire.org Git - thirdparty/glibc.git/blame - benchtests/pthread_once-inputs
Define write_profiling functions only in profile library [BZ #31756]
[thirdparty/glibc.git] / benchtests / pthread_once-inputs
CommitLineData
6a5d6ea1
TR
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