Lines Matching defs:thelock
404 sem_t *thelock = (sem_t *)lock;
410 if (!thelock)
413 status = sem_destroy(thelock);
416 PyMem_RawFree((void *)thelock);
436 sem_t *thelock = (sem_t *)lock;
483 status = fix_status(sem_clockwait(thelock, CLOCK_MONOTONIC,
490 status = fix_status(sem_timedwait(thelock, &ts));
494 status = fix_status(sem_trywait(thelock));
497 status = fix_status(sem_wait(thelock));
557 sem_t *thelock = (sem_t *)lock;
563 status = sem_post(thelock);
611 pthread_lock *thelock = (pthread_lock *)lock;
620 status = pthread_cond_destroy( &thelock->lock_released );
623 status = pthread_mutex_destroy( &thelock->mut );
626 PyMem_RawFree((void *)thelock);
634 pthread_lock *thelock = (pthread_lock *)lock;
641 status = pthread_mutex_trylock( &thelock->mut );
646 status = pthread_mutex_lock( &thelock->mut );
650 if (thelock->locked == 0) {
665 &thelock->lock_released,
666 &thelock->mut, &abs);
676 &thelock->lock_released,
677 &thelock->mut);
681 if (intr_flag && status == 0 && thelock->locked) {
688 else if (status == 0 && !thelock->locked) {
693 if (success == PY_LOCK_ACQUIRED) thelock->locked = 1;
694 status = pthread_mutex_unlock( &thelock->mut );
707 pthread_lock *thelock = (pthread_lock *)lock;
713 status = pthread_mutex_lock( &thelock->mut );
716 thelock->locked = 0;
719 status = pthread_cond_signal( &thelock->lock_released );
722 status = pthread_mutex_unlock( &thelock->mut );