Searched refs:thelock (Results 1 – 3 of 3) 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 …]
285 sem_t *thelock = (sem_t *)lock; in PyThread_free_lock() local291 if (!thelock) in PyThread_free_lock()294 status = sem_destroy(thelock); in PyThread_free_lock()297 free((void *)thelock); in PyThread_free_lock()316 sem_t *thelock = (sem_t *)lock; in PyThread_acquire_lock() local324 status = fix_status(sem_wait(thelock)); in PyThread_acquire_lock()326 status = fix_status(sem_trywait(thelock)); in PyThread_acquire_lock()344 sem_t *thelock = (sem_t *)lock; in PyThread_release_lock() local350 status = sem_post(thelock); in PyThread_release_lock()395 pthread_lock *thelock = (pthread_lock *)lock; in PyThread_free_lock() local[all …]
308 sem_t *thelock = (sem_t *)lock; in PyThread_free_lock() local314 if (!thelock) in PyThread_free_lock()317 status = sem_destroy(thelock); in PyThread_free_lock()320 PyMem_RawFree((void *)thelock); in PyThread_free_lock()340 sem_t *thelock = (sem_t *)lock; in PyThread_acquire_lock_timed() local366 status = fix_status(sem_timedwait(thelock, &ts)); in PyThread_acquire_lock_timed()369 status = fix_status(sem_trywait(thelock)); in PyThread_acquire_lock_timed()372 status = fix_status(sem_wait(thelock)); in PyThread_acquire_lock_timed()435 sem_t *thelock = (sem_t *)lock; in PyThread_release_lock() local441 status = sem_post(thelock); in PyThread_release_lock()[all …]