336
323
Decrement counter for number of running threads. We are using this
337
324
in my_thread_global_end() to wait until all threads have called
338
325
my_thread_end and thus freed all memory they have allocated in
341
328
pthread_mutex_lock(&THR_LOCK_threads);
343
330
if (--THR_thread_count == 0)
344
331
pthread_cond_signal(&THR_COND_threads);
345
332
pthread_mutex_unlock(&THR_LOCK_threads);