1
0
mirror of https://github.com/GOSTSec/sgminer synced 2025-01-23 04:54:26 +00:00

Must always unlock mutex after cond timedwait.

This commit is contained in:
ckolivas 2012-07-02 12:45:16 +10:00
parent df5d196f9a
commit 06ec47b3bd

View File

@ -2494,8 +2494,7 @@ 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);
mutex_unlock(&restart_lock);
return rc;
}