Home
last modified time | relevance | path

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

/external/python/cpython2/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.h285 sem_t *thelock = (sem_t *)lock; in PyThread_free_lock() local
291 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() local
324 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() local
350 status = sem_post(thelock); in PyThread_release_lock()
395 pthread_lock *thelock = (pthread_lock *)lock; in PyThread_free_lock() local
[all …]
/external/python/cpython3/Python/
Dthread_pthread.h308 sem_t *thelock = (sem_t *)lock; in PyThread_free_lock() local
314 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() local
366 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() local
441 status = sem_post(thelock); in PyThread_release_lock()
[all …]