2024-06-17 12:14:24 +08:00
|
|
|
#include <pthread.h>
|
|
|
|
|
|
2024-06-17 18:32:58 +08:00
|
|
|
// -----------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
|
pthread_once_t llgoSyncOnceInitVal = PTHREAD_ONCE_INIT;
|
|
|
|
|
|
|
|
|
|
// -----------------------------------------------------------------------------
|
2024-07-27 09:28:09 +08:00
|
|
|
|
|
|
|
|
// 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);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// -----------------------------------------------------------------------------
|