42 if (uts->num + 1 > uts->length) {
44 uts->arr = (
void **)realloc(uts->arr, uts->length *
sizeof(
void *));
47 uts->arr[uts->num++] = ptr;
60 ret = uts->arr[--uts->num];
61 uts->arr[uts->num] = NULL;
76 if (uts->arr != NULL) {
static int os_mutex_init(struct os_mutex *om)
Init.
Definition: os_threading.h:70
static void os_mutex_lock(struct os_mutex *om)
Lock.
Definition: os_threading.h:86
static void os_mutex_unlock(struct os_mutex *om)
Unlock.
Definition: os_threading.h:110
static void os_mutex_destroy(struct os_mutex *om)
Clean up.
Definition: os_threading.h:122
Wrapper around OS threading native functions.
A wrapper around a native mutex.
Definition: os_threading.h:55
Definition: u_threading.h:17