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

--HG--
branch : develop
feature/pipeline-tools
kervala 8 years ago
parent faecd5b952
commit dbf443beb7

@ -50,8 +50,11 @@ 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…
Cancel
Save