C.wrap_pthread_mutex_lock

This commit is contained in:
xushiwei
2024-07-27 09:28:09 +08:00
parent e69306a2ba
commit 2cd9994321
2 changed files with 16 additions and 8 deletions

View File

@@ -5,3 +5,15 @@
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);
}
// -----------------------------------------------------------------------------