compiler: build separation runtime with clite
This commit is contained in:
19
runtime/internal/clite/pthread/sync/_wrap/pthd.c
Normal file
19
runtime/internal/clite/pthread/sync/_wrap/pthd.c
Normal 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);
|
||||
}
|
||||
|
||||
// -----------------------------------------------------------------------------
|
||||
Reference in New Issue
Block a user