Commit fd8b984c authored by Y_Tomita's avatar Y_Tomita

Fixed a bug about Basic simulator.

parent 62d5e139
......@@ -1143,14 +1143,12 @@ int main( int argc, char **argv )
}
#endif
while(sync_var == -1){
usleep(1000);
}
printf("Sending sync to all threads (%p,%p,%p)\n",&sync_var,&sync_cond,&sync_mutex);
pthread_mutex_lock(&sync_mutex);
// sync_var=0;
sync_var=0;
pthread_cond_broadcast(&sync_cond);
pthread_mutex_unlock(&sync_mutex);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment