* Current thread has completed its work. Indicate completion, * and if all threads in this task set have completed, wakeup * anyone waiting for this condition. */
| 164 | * anyone waiting for this condition. |
| 165 | */ |
| 166 | static void |
| 167 | taskset_thread_complete( taskset_thread_t *thread ) |
| 168 | { |
| 169 | hb_lock( thread->lock ); |
| 170 | thread->complete = 1; |
| 171 | hb_cond_signal( thread->complete_cond ); |
| 172 | hb_unlock( thread->lock ); |
| 173 | } |
| 174 | |
| 175 | static void |
| 176 | taskset_thread_f( void *thread_args_v ) |
no test coverage detected