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