repo.or.cz
/
musl.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
synccall: add separate exit_sem to fix thread release logic bug
[musl.git]
/
src
/
thread
/
call_once.c
blob
5ed30183dff17c4bc7af033ed8b90080f75760c0
1
#include <threads.h>
2
#include <pthread.h>
3
4
void
call_once
(
once_flag
*
flag
,
void
(*
func
)(
void
))
5
{
6
__pthread_once
(
flag
,
func
);
7
}