process_shared/ext/libpsem/mutex.c

16 lines
223 B
C
Raw Normal View History

2011-12-12 03:39:55 +00:00
#include <stdlib.h> /* malloc, free */
#include "mutex.h"
size_t sizeof_mutex_t = sizeof (mutex_t);
mutex_t *
mutex_alloc(void) {
return malloc(sizeof(mutex_t));
}
void
mutex_free(mutex_t * mutex) {
free(mutex);
}