mirror of
https://port.numenaute.org/aleajactaest/khanat-code-old.git
synced 2024-11-17 04:51:48 +00:00
Fixed: C++11 forbids to throw exception in destructor
This commit is contained in:
parent
e1f810ffba
commit
ba441d034a
1 changed files with 5 additions and 2 deletions
|
@ -51,7 +51,10 @@ struct CPMainThread : public CPThread
|
||||||
~CPMainThread()
|
~CPMainThread()
|
||||||
{
|
{
|
||||||
if (pthread_key_delete(threadSpecificKey) != 0)
|
if (pthread_key_delete(threadSpecificKey) != 0)
|
||||||
throw EThread("cannot delete thread specific storage key.");
|
{
|
||||||
|
nlwarning("cannot delete thread specific storage key.");
|
||||||
|
// throw EThread("cannot delete thread specific storage key.");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue