Lines Matching refs:error

53 	int error;
55 error = pthread_mutex_init(lock, NULL);
56 PJDLOG_ASSERT(error == 0);
61 int error;
63 error = pthread_mutex_destroy(lock);
64 PJDLOG_ASSERT(error == 0);
69 int error;
71 error = pthread_mutex_lock(lock);
72 PJDLOG_ASSERT(error == 0);
77 int error;
79 error = pthread_mutex_trylock(lock);
80 PJDLOG_ASSERT(error == 0 || error == EBUSY);
81 return (error == 0);
86 int error;
88 error = pthread_mutex_unlock(lock);
89 PJDLOG_ASSERT(error == 0);
101 int error;
103 error = pthread_rwlock_init(lock, NULL);
104 PJDLOG_ASSERT(error == 0);
109 int error;
111 error = pthread_rwlock_destroy(lock);
112 PJDLOG_ASSERT(error == 0);
117 int error;
119 error = pthread_rwlock_rdlock(lock);
120 PJDLOG_ASSERT(error == 0);
125 int error;
127 error = pthread_rwlock_wrlock(lock);
128 PJDLOG_ASSERT(error == 0);
133 int error;
135 error = pthread_rwlock_unlock(lock);
136 PJDLOG_ASSERT(error == 0);
143 int error;
145 error = pthread_condattr_init(&attr);
146 PJDLOG_ASSERT(error == 0);
147 error = pthread_condattr_setclock(&attr, CLOCK_MONOTONIC);
148 PJDLOG_ASSERT(error == 0);
149 error = pthread_cond_init(cv, &attr);
150 PJDLOG_ASSERT(error == 0);
151 error = pthread_condattr_destroy(&attr);
152 PJDLOG_ASSERT(error == 0);
157 int error;
159 error = pthread_cond_wait(cv, lock);
160 PJDLOG_ASSERT(error == 0);
167 int error;
174 error = clock_gettime(CLOCK_MONOTONIC, &ts);
175 PJDLOG_ASSERT(error == 0);
177 error = pthread_cond_timedwait(cv, lock, &ts);
178 PJDLOG_ASSERT(error == 0 || error == ETIMEDOUT);
179 return (error == ETIMEDOUT);
184 int error;
186 error = pthread_cond_signal(cv);
187 PJDLOG_ASSERT(error == 0);
192 int error;
194 error = pthread_cond_broadcast(cv);
195 PJDLOG_ASSERT(error == 0);