Lines Matching +defs:thread +defs:mutex
87 dcethread_cond_wait(dcethread_cond *cond, dcethread_mutex *mutex)
95 info.mutex = mutex;
102 mutex->owner = (pthread_t) -1;
103 ret = dcethread__set_errno(pthread_cond_wait(cond, (pthread_mutex_t*) &mutex->mutex));
104 mutex->owner = pthread_self();
115 dcethread_cond_wait_throw(dcethread_cond *cond, dcethread_mutex *mutex)
117 DCETHREAD_WRAP_THROW(dcethread_cond_wait(cond, mutex));
131 dcethread_mutex mutex;
133 MU_TRY_DCETHREAD( dcethread_mutex_init(&mutex, NULL) );
139 MU_TRY_DCETHREAD( dcethread_mutex_lock (&mutex) );
143 MU_TRY_DCETHREAD( dcethread_cond_wait (&cond, &mutex) );
153 dcethread_mutex_unlock (&mutex);
164 dcethread* thread;
166 MU_TRY_DCETHREAD( dcethread_create(&thread, NULL, basic_thread, NULL) );
167 MU_TRY_DCETHREAD( dcethread_interrupt(thread) );
168 MU_TRY_DCETHREAD( dcethread_join(thread, NULL) );
173 dcethread* thread;
179 MU_TRY_DCETHREAD( dcethread_create(&thread, NULL, basic_thread, NULL) );
181 MU_TRY_DCETHREAD( dcethread_interrupt(thread) );
182 MU_TRY_DCETHREAD( dcethread_join(thread, NULL) );
223 dcethread* thread;
229 MU_TRY_DCETHREAD( dcethread_create(&thread, NULL, global_lock_thread, NULL) );
232 MU_TRY_DCETHREAD( dcethread_interrupt(thread) );
234 MU_TRY_DCETHREAD( dcethread_join(thread, NULL) );