Lines Matching refs:benaphore_t
12 } benaphore_t; typedef
14 static status_t benaphore_create( const char *name, benaphore_t *ben );
15 static status_t benaphore_destroy( benaphore_t *ben );
16 static status_t benaphore_lock( benaphore_t *ben );
17 static status_t benaphore_timedlock( benaphore_t *ben, bigtime_t micros );
18 static status_t benaphore_unlock( benaphore_t *ben );
20 static status_t benaphore_create( const char *name, benaphore_t *ben ) in benaphore_create()
36 static status_t benaphore_destroy( benaphore_t *ben ) in benaphore_destroy()
51 static status_t benaphore_lock( benaphore_t *ben ) in benaphore_lock()
62 static status_t benaphore_timedlock( benaphore_t *ben, bigtime_t micros ) in benaphore_timedlock()
86 static status_t benaphore_unlock( benaphore_t *ben ) in benaphore_unlock()
173 benaphore_t *lock; in PyThread_allocate_lock()
180 lock = (benaphore_t *)malloc( sizeof( benaphore_t ) ); in PyThread_allocate_lock()
205 retval = benaphore_destroy( (benaphore_t *)lock ); in PyThread_free_lock()
220 retval = benaphore_lock( (benaphore_t *)lock ); in PyThread_acquire_lock()
222 retval = benaphore_timedlock( (benaphore_t *)lock, 0 ); in PyThread_acquire_lock()
243 retval = benaphore_unlock( (benaphore_t *)lock ); in PyThread_release_lock()