fixed some race conditions
This commit is contained in:
5
main.c
5
main.c
@ -73,6 +73,11 @@ int main(){
|
||||
pthread_cancel(thread_m);
|
||||
pthread_cancel(thread_r);
|
||||
pthread_cancel(thread_b);
|
||||
pthread_join(thread_b, NULL);
|
||||
pthread_join(thread_r, NULL);
|
||||
pthread_join(thread_m, NULL);
|
||||
pthread_join(thread_l, NULL);
|
||||
pthread_join(thread_t, NULL);
|
||||
threading = 0;
|
||||
}
|
||||
pthread_create(&thread_t, NULL, thread_top, win_t); /*top bar*/
|
||||
|
Reference in New Issue
Block a user