mirror of
https://github.com/Z3Prover/z3
synced 2025-07-25 13:47:01 +00:00
Merge pull request #853 from delcypher/scoped_timer_linux_perf_fix
Fix issue with bd1f07f864
This commit is contained in:
commit
7378362e81
1 changed files with 2 additions and 1 deletions
|
@ -230,8 +230,9 @@ struct scoped_timer::imp {
|
||||||
}
|
}
|
||||||
pthread_mutex_lock(&m_mutex);
|
pthread_mutex_lock(&m_mutex);
|
||||||
m_signal_sent = true;
|
m_signal_sent = true;
|
||||||
pthread_cond_signal(&m_cond);
|
|
||||||
pthread_mutex_unlock(&m_mutex);
|
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_join(m_thread_id, NULL);
|
||||||
pthread_cond_destroy(&m_cond);
|
pthread_cond_destroy(&m_cond);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue