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