mirror of
https://github.com/debauchee/barrier.git
synced 2026-02-08 04:45:03 +08:00
Fixed CThreadRep to not raise a signal on the thread if it's
already dead. Otherwise the signal could propagate to the parent thread (at least on linux threads) and cause havoc.
This commit is contained in:
@@ -389,7 +389,7 @@ void
|
||||
CThreadRep::cancel()
|
||||
{
|
||||
CLock lock(s_mutex);
|
||||
if (m_cancellable && !m_cancelling) {
|
||||
if (!m_exit && m_cancellable && !m_cancelling) {
|
||||
m_cancel = true;
|
||||
}
|
||||
else {
|
||||
|
||||
Reference in New Issue
Block a user