Lines Matching full:error
50 int error;
52 error = pthread_mutex_init(lock, NULL);
53 PJDLOG_ASSERT(error == 0);
58 int error;
60 error = pthread_mutex_destroy(lock);
61 PJDLOG_ASSERT(error == 0);
66 int error;
68 error = pthread_mutex_lock(lock);
69 PJDLOG_ASSERT(error == 0);
74 int error;
76 error = pthread_mutex_trylock(lock);
77 PJDLOG_ASSERT(error == 0 || error == EBUSY);
78 return (error == 0);
83 int error;
85 error = pthread_mutex_unlock(lock);
86 PJDLOG_ASSERT(error == 0);
98 int error;
100 error = pthread_rwlock_init(lock, NULL);
101 PJDLOG_ASSERT(error == 0);
106 int error;
108 error = pthread_rwlock_destroy(lock);
109 PJDLOG_ASSERT(error == 0);
114 int error;
116 error = pthread_rwlock_rdlock(lock);
117 PJDLOG_ASSERT(error == 0);
122 int error;
124 error = pthread_rwlock_wrlock(lock);
125 PJDLOG_ASSERT(error == 0);
130 int error;
132 error = pthread_rwlock_unlock(lock);
133 PJDLOG_ASSERT(error == 0);
140 int error;
142 error = pthread_condattr_init(&attr);
143 PJDLOG_ASSERT(error == 0);
144 error = pthread_condattr_setclock(&attr, CLOCK_MONOTONIC);
145 PJDLOG_ASSERT(error == 0);
146 error = pthread_cond_init(cv, &attr);
147 PJDLOG_ASSERT(error == 0);
148 error = pthread_condattr_destroy(&attr);
149 PJDLOG_ASSERT(error == 0);
154 int error;
156 error = pthread_cond_wait(cv, lock);
157 PJDLOG_ASSERT(error == 0);
164 int error;
171 error = clock_gettime(CLOCK_MONOTONIC, &ts);
172 PJDLOG_ASSERT(error == 0);
174 error = pthread_cond_timedwait(cv, lock, &ts);
175 PJDLOG_ASSERT(error == 0 || error == ETIMEDOUT);
176 return (error == ETIMEDOUT);
181 int error;
183 error = pthread_cond_signal(cv);
184 PJDLOG_ASSERT(error == 0);
189 int error;
191 error = pthread_cond_broadcast(cv);
192 PJDLOG_ASSERT(error == 0);