Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
glibc/benchtests/pthread_once-inputs
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
9 lines (9 sloc)
434 Bytes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |