Lines Matching refs:fastmutex_t
24 } fastmutex_t; typedef
27 static int fastmutex_create(const char *name, fastmutex_t * mutex);
28 static int fastmutex_destroy(fastmutex_t * mutex);
29 static int fastmutex_lock(fastmutex_t * mutex);
30 static int fastmutex_timedlock(fastmutex_t * mutex, bigtime_t timeout);
31 static int fastmutex_unlock(fastmutex_t * mutex);
34 static int fastmutex_create(const char *name, fastmutex_t * mutex) in fastmutex_create()
42 static int fastmutex_destroy(fastmutex_t * mutex) in fastmutex_destroy()
51 static int fastmutex_lock(fastmutex_t * mutex) in fastmutex_lock()
60 static int fastmutex_timedlock(fastmutex_t * mutex, bigtime_t timeout) in fastmutex_timedlock()
69 static int fastmutex_unlock(fastmutex_t * mutex) in fastmutex_unlock()
156 fastmutex_t *lock; in PyThread_allocate_lock()
166 lock = (fastmutex_t *) malloc(sizeof(fastmutex_t)); in PyThread_allocate_lock()
202 if (fastmutex_destroy((fastmutex_t *) lock) < 0) { in PyThread_free_lock()
225 retval = fastmutex_lock((fastmutex_t *) lock); in PyThread_acquire_lock()
227 retval = fastmutex_timedlock((fastmutex_t *) lock, 0); in PyThread_acquire_lock()
249 if (fastmutex_unlock((fastmutex_t *) lock) < 0) { in PyThread_release_lock()