Lines Matching defs:err
133 int err;
172 err = pthread_create(tid, attr, f.out, arg);
177 return UV__ERR(err);
300 int err;
308 err = pthread_mutex_init(mutex, &attr);
313 return UV__ERR(err);
320 int err;
328 err = pthread_mutex_init(mutex, &attr);
333 return UV__ERR(err);
350 int err;
352 err = pthread_mutex_trylock(mutex);
353 if (err) {
354 if (err != EBUSY && err != EAGAIN)
387 int err;
389 err = pthread_rwlock_tryrdlock(rwlock);
390 if (err) {
391 if (err != EBUSY && err != EAGAIN)
413 int err;
415 err = pthread_rwlock_trywrlock(rwlock);
416 if (err) {
417 if (err != EBUSY && err != EAGAIN)
440 kern_return_t err;
442 err = semaphore_create(mach_task_self(), sem, SYNC_POLICY_FIFO, value);
443 if (err == KERN_SUCCESS)
445 if (err == KERN_INVALID_ARGUMENT)
447 if (err == KERN_RESOURCE_SHORTAGE)
481 kern_return_t err;
486 err = semaphore_timedwait(*sem, interval);
487 if (err == KERN_SUCCESS)
489 if (err == KERN_OPERATION_TIMED_OUT)
540 int err;
547 if ((err = uv_mutex_init(&sem->mutex)) != 0) {
549 return err;
552 if ((err = uv_cond_init(&sem->cond)) != 0) {
555 return err;
719 int err;
721 err = pthread_condattr_init(&attr);
722 if (err)
723 return UV__ERR(err);
725 err = pthread_condattr_setclock(&attr, CLOCK_MONOTONIC);
726 if (err)
729 err = pthread_cond_init(cond, &attr);
730 if (err)
733 err = pthread_condattr_destroy(&attr);
734 if (err)
743 return UV__ERR(err);
756 int err;
767 err = pthread_cond_timedwait_relative_np(cond, &mutex, &ts);
768 if (err != 0 && err != ETIMEDOUT)