c/pthread: nogc

This commit is contained in:
xushiwei
2024-08-15 20:43:52 +08:00
parent 03f0a4289b
commit f5bbf4b515
7 changed files with 115 additions and 63 deletions

View File

@@ -0,0 +1,19 @@
#include <pthread.h>
// -----------------------------------------------------------------------------
pthread_once_t llgoSyncOnceInitVal = PTHREAD_ONCE_INIT;
// -----------------------------------------------------------------------------
// wrap return type to void
void wrap_pthread_mutex_lock(pthread_mutex_t *mutex) {
pthread_mutex_lock(mutex);
}
// wrap return type to void
void wrap_pthread_mutex_unlock(pthread_mutex_t *mutex) {
pthread_mutex_unlock(mutex);
}
// -----------------------------------------------------------------------------