mirror of
https://github.com/glest/glest-source.git
synced 2025-08-21 07:31:21 +02:00
- attempt to get better stack trace if simple thread dies in destructor
This commit is contained in:
@@ -307,7 +307,19 @@ SimpleTaskThread::SimpleTaskThread( SimpleTaskCallbackInterface *simpleTaskInter
|
|||||||
}
|
}
|
||||||
|
|
||||||
SimpleTaskThread::~SimpleTaskThread() {
|
SimpleTaskThread::~SimpleTaskThread() {
|
||||||
|
try {
|
||||||
|
if(this->simpleTaskInterface != NULL) {
|
||||||
this->simpleTaskInterface->shutdownTask(this);
|
this->simpleTaskInterface->shutdownTask(this);
|
||||||
|
this->simpleTaskInterface = NULL;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
catch(const exception &ex) {
|
||||||
|
SystemFlags::OutputDebug(SystemFlags::debugError,"In [%s::%s Line: %d] Error [%s]\n",__FILE__,__FUNCTION__,__LINE__,ex.what());
|
||||||
|
if(SystemFlags::getSystemSettingType(SystemFlags::debugSystem).enabled) SystemFlags::OutputDebug(SystemFlags::debugSystem,"In [%s::%s Line: %d] uniqueID [%s]\n",__FILE__,__FUNCTION__,__LINE__,this->getUniqueID().c_str());
|
||||||
|
|
||||||
|
//throw runtime_error(ex.what());
|
||||||
|
abort();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
bool SimpleTaskThread::isThreadExecutionLagging() {
|
bool SimpleTaskThread::isThreadExecutionLagging() {
|
||||||
|
Reference in New Issue
Block a user