Searched refs:thelock (Results 1 – 2 of 2) sorted by relevance
116 pth_lock *thelock = (pth_lock *)lock; in PyThread_free_lock() local120 free((void *)thelock); in PyThread_free_lock()126 pth_lock *thelock = (pth_lock *)lock; in PyThread_acquire_lock() local131 status = pth_mutex_acquire(&thelock->mut, !waitflag, NULL); in PyThread_acquire_lock()133 success = thelock->locked == 0; in PyThread_acquire_lock()134 if (success) thelock->locked = 1; in PyThread_acquire_lock()135 status = pth_mutex_release( &thelock->mut ); in PyThread_acquire_lock()143 status = pth_mutex_acquire( &thelock->mut, !waitflag, NULL ); in PyThread_acquire_lock()145 while ( thelock->locked ) { in PyThread_acquire_lock()146 status = pth_cond_await(&thelock->lock_released, in PyThread_acquire_lock()[all …]
284 sem_t *thelock = (sem_t *)lock; in PyThread_free_lock() local289 if (!thelock) in PyThread_free_lock()292 status = sem_destroy(thelock); in PyThread_free_lock()295 free((void *)thelock); in PyThread_free_lock()314 sem_t *thelock = (sem_t *)lock; in PyThread_acquire_lock() local321 status = fix_status(sem_wait(thelock)); in PyThread_acquire_lock()323 status = fix_status(sem_trywait(thelock)); in PyThread_acquire_lock()341 sem_t *thelock = (sem_t *)lock; in PyThread_release_lock() local346 status = sem_post(thelock); in PyThread_release_lock()391 pthread_lock *thelock = (pthread_lock *)lock; in PyThread_free_lock() local[all …]