Lines Matching defs:err
240 int err;
279 err = pthread_create(tid, attr, f.out, arg);
284 return UV__ERR(err);
307 int err;
315 err = pthread_mutex_init(mutex, &attr);
320 return UV__ERR(err);
327 int err;
335 err = pthread_mutex_init(mutex, &attr);
340 return UV__ERR(err);
357 int err;
359 err = pthread_mutex_trylock(mutex);
360 if (err) {
361 if (err != EBUSY && err != EAGAIN)
394 int err;
396 err = pthread_rwlock_tryrdlock(rwlock);
397 if (err) {
398 if (err != EBUSY && err != EAGAIN)
420 int err;
422 err = pthread_rwlock_trywrlock(rwlock);
423 if (err) {
424 if (err != EBUSY && err != EAGAIN)
447 kern_return_t err;
449 err = semaphore_create(mach_task_self(), sem, SYNC_POLICY_FIFO, value);
450 if (err == KERN_SUCCESS)
452 if (err == KERN_INVALID_ARGUMENT)
454 if (err == KERN_RESOURCE_SHORTAGE)
488 kern_return_t err;
493 err = semaphore_timedwait(*sem, interval);
494 if (err == KERN_SUCCESS)
496 if (err == KERN_OPERATION_TIMED_OUT)
547 int err;
554 if ((err = uv_mutex_init(&sem->mutex)) != 0) {
556 return err;
559 if ((err = uv_cond_init(&sem->cond)) != 0) {
562 return err;
726 int err;
728 err = pthread_condattr_init(&attr);
729 if (err)
730 return UV__ERR(err);
732 err = pthread_condattr_setclock(&attr, CLOCK_MONOTONIC);
733 if (err)
736 err = pthread_cond_init(cond, &attr);
737 if (err)
740 err = pthread_condattr_destroy(&attr);
741 if (err)
750 return UV__ERR(err);
763 int err;
774 err = pthread_cond_timedwait_relative_np(cond, &mutex, &ts);
775 if (err != 0 && err != ETIMEDOUT)