Fixed: C++11 forbids to throw exception in destructor

This commit is contained in:
kervala 2016-12-10 19:04:29 +01:00
parent e1f810ffba
commit ba441d034a

View file

@ -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.");
}
}
};