Browse Source

Must always unlock mutex after cond timedwait.

nfactor-troky
ckolivas 13 years ago
parent
commit
06ec47b3bd
  1. 1
      cgminer.c

1
cgminer.c

@ -2494,7 +2494,6 @@ int restart_wait(struct timeval *tdiff) @@ -2494,7 +2494,6 @@ int restart_wait(struct timeval *tdiff)
abstime.tv_nsec = then.tv_usec * 1000;
mutex_lock(&restart_lock);
rc = pthread_cond_timedwait(&restart_cond, &restart_lock, &abstime);
if (!rc)
mutex_unlock(&restart_lock);
return rc;
}

Loading…
Cancel
Save