Lines Matching refs:status

201 #define CHECK_STATUS(name)  if (status != 0) { perror(name); error = 1; }
202 #define CHECK_STATUS_PTHREAD(name) if (status != 0) { fprintf(stderr, \
203 "%s: %s\n", name, strerror(status)); error = 1; }
249 int status;
289 status = pthread_create(&th,
301 if (status != 0) {
379 int status, error = 0;
388 status = sem_init(lock,0,1);
405 int status, error = 0;
413 status = sem_destroy(thelock);
426 fix_status(int status)
428 return (status == -1) ? errno : status;
437 int status, error = 0;
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));
502 if (intr_flag || status != EINTR) {
513 status = ETIMEDOUT;
520 /* Don't check the status if we're stopping because of an interrupt. */
521 if (!(intr_flag && status == EINTR)) {
523 if (status != ETIMEDOUT) {
532 if (status != EAGAIN) {
541 if (status == 0) {
543 } else if (intr_flag && status == EINTR) {
558 int status, error = 0;
563 status = sem_post(thelock);
576 int status, error = 0;
586 status = pthread_mutex_init(&lock->mut, NULL);
595 status = _PyThread_cond_init(&lock->lock_released);
612 int status, error = 0;
620 status = pthread_cond_destroy( &thelock->lock_released );
623 status = pthread_mutex_destroy( &thelock->mut );
635 int status, error = 0;
641 status = pthread_mutex_trylock( &thelock->mut );
642 if (status != EBUSY)
646 status = pthread_mutex_lock( &thelock->mut );
649 if (status == 0) {
664 status = pthread_cond_timedwait(
667 if (status == 1) {
670 if (status == ETIMEDOUT)
675 status = pthread_cond_wait(
681 if (intr_flag && status == 0 && thelock->locked) {
688 else if (status == 0 && !thelock->locked) {
694 status = pthread_mutex_unlock( &thelock->mut );
708 int status, error = 0;
713 status = pthread_mutex_lock( &thelock->mut );
719 status = pthread_cond_signal( &thelock->lock_released );
722 status = pthread_mutex_unlock( &thelock->mut );
807 failure status and other TLS functions all are no-ops. This indicates