2025-01-07 22:16:31 +08:00
|
|
|
#include <pthread.h>
|
|
|
|
|
|
|
|
|
|
// -----------------------------------------------------------------------------
|
|
|
|
|
|
2025-01-08 17:04:10 +08:00
|
|
|
pthread_once_t cliteSyncOnceInitVal = PTHREAD_ONCE_INIT;
|
2025-01-07 22:16:31 +08:00
|
|
|
|
|
|
|
|
// -----------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
|
// wrap return type to void
|
2025-01-08 17:04:10 +08:00
|
|
|
void clite_wrap_pthread_mutex_lock(pthread_mutex_t *mutex)
|
|
|
|
|
{
|
2025-01-07 22:16:31 +08:00
|
|
|
pthread_mutex_lock(mutex);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// wrap return type to void
|
2025-01-08 17:04:10 +08:00
|
|
|
void clite_wrap_pthread_mutex_unlock(pthread_mutex_t *mutex)
|
|
|
|
|
{
|
2025-01-07 22:16:31 +08:00
|
|
|
pthread_mutex_unlock(mutex);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// -----------------------------------------------------------------------------
|