redmine

Fixed bug with wrong state_p unlock: https://github.com/xaionaro/clsync/issues/7

Showing 1 changed file with 1 additions and 0 deletions
... ... @@ -1947,6 +1947,7 @@ int sync_switch_state(pthread_t pthread_parent, int newstate) {
while(1) {
struct timespec time_timeout;
clock_gettime(CLOCK_REALTIME, &time_timeout);
time_timeout.tv_sec++;
// time_timeout.tv_sec = now.tv_sec;
printf_ddd("Debug3: sync_switch_state(): pthread_cond_timedwait() until %li.%li\n", time_timeout.tv_sec, time_timeout.tv_nsec);
... ...