Improved test11 a bit (for #604)

This commit is contained in:
ptitSeb 2022-10-12 21:37:29 +02:00
parent bc810d16f1
commit a621a2b61f
2 changed files with 1 additions and 1 deletions

Binary file not shown.

View File

@ -53,8 +53,8 @@ void *thread_run(void *parm)
while (!status) pthread_cond_wait(thread_state_cond_ptr, mutex_ptr);
printf("Thread 2: Entered (%d/%d)\n", TLS_data1, TLS_data2);
fflush(stdout);
pthread_mutex_unlock(mutex_ptr);
status = 0;
pthread_mutex_unlock(mutex_ptr);
pthread_cond_broadcast(thread_state_cond_ptr);
}