mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-11-22 15:16:12 +00:00
Fixed: C++11 forbids to throw exception in destructor
--HG-- branch : develop
This commit is contained in:
parent
faecd5b952
commit
dbf443beb7
1 changed files with 5 additions and 2 deletions
|
@ -50,8 +50,11 @@ struct CPMainThread : public CPThread
|
|||
|
||||
~CPMainThread()
|
||||
{
|
||||
if(pthread_key_delete(threadSpecificKey) != 0)
|
||||
throw EThread("cannot delete thread specific storage key.");
|
||||
if (pthread_key_delete(threadSpecificKey) != 0)
|
||||
{
|
||||
nlwarning("cannot delete thread specific storage key.");
|
||||
// throw EThread("cannot delete thread specific storage key.");
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue