c/pthread/sync.Once

This commit is contained in:
xushiwei
2024-06-17 12:14:24 +08:00
parent a819796ce2
commit 72274bda82
6 changed files with 122 additions and 1 deletions

View File

@@ -0,0 +1,6 @@
#include <pthread.h>
pthread_once_t llgoSyncOnceInitVal() {
pthread_once_t initVal = PTHREAD_ONCE_INIT;
return initVal;
}