mirror of
https://github.com/Z3Prover/z3
synced 2025-04-08 18:31:49 +00:00
Merge pull request #853 from delcypher/scoped_timer_linux_perf_fix
Fix issue with bd1f07f864
This commit is contained in:
commit
7378362e81
|
@ -230,8 +230,9 @@ struct scoped_timer::imp {
|
|||
}
|
||||
pthread_mutex_lock(&m_mutex);
|
||||
m_signal_sent = true;
|
||||
pthread_cond_signal(&m_cond);
|
||||
pthread_mutex_unlock(&m_mutex);
|
||||
// Perform signal outside of lock to avoid waking timing thread twice.
|
||||
pthread_cond_signal(&m_cond);
|
||||
|
||||
pthread_join(m_thread_id, NULL);
|
||||
pthread_cond_destroy(&m_cond);
|
||||
|
|
Loading…
Reference in a new issue