Home
last modified time | relevance | path

Searched refs:thelock (Results 1 – 2 of 2) sorted by relevance

/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Python/
Dthread_pth.h116 pth_lock *thelock = (pth_lock *)lock; in PyThread_free_lock() local
120 free((void *)thelock); in PyThread_free_lock()
126 pth_lock *thelock = (pth_lock *)lock; in PyThread_acquire_lock() local
131 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 …]
Dthread_pthread.h284 sem_t *thelock = (sem_t *)lock; in PyThread_free_lock() local
289 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() local
321 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() local
346 status = sem_post(thelock); in PyThread_release_lock()
391 pthread_lock *thelock = (pthread_lock *)lock; in PyThread_free_lock() local
[all …]