Skip to content
Fetching contributors…
Cannot retrieve contributors at this time
27 lines (21 sloc) 365 Bytes
#include "mutex.h"
void mutex_init(mutex_t* mutex)
{
pthread_mutex_init(mutex, NULL);
}
void mutex_destroy(mutex_t* mutex)
{
pthread_mutex_destroy(mutex);
}
void mutex_lock(mutex_t* mutex)
{
pthread_mutex_lock(mutex);
}
void mutex_unlock(mutex_t* mutex)
{
pthread_mutex_unlock(mutex);
}
unsigned long self()
{
return (unsigned long)pthread_self();
}
Jump to Line
Something went wrong with that request. Please try again.