/
githubmirror
/
glibc
Обзор
Документация
Войти
/
githubmirror
/
glibc
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
benchtests/pthread_once-inputs
9 строк
434 B
Torvald Riegel
benchtests: Add pthread_once common-case test.
10 апр 2014, 23:22
10 апр 2014, 23:22
6a5d6ea
Код
Авторство
О чём код?
# 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