mirror of
https://github.com/glest/glest-source.git
synced 2025-08-15 04:43:58 +02:00
Fixed libstreflop warnings
This commit is contained in:
@@ -33,11 +33,11 @@ namespace Shared {
|
||||
mutexThreadObjectAccessor(new Mutex(CODE_AT_LINE)),
|
||||
mutexThreadOwnerValid(new Mutex(CODE_AT_LINE)),
|
||||
mutexExecutingTask(new Mutex(CODE_AT_LINE)),
|
||||
ptr(NULL),
|
||||
mutexStarted(new Mutex(CODE_AT_LINE)),
|
||||
ptr(NULL), genericData(NULL) {
|
||||
genericData(NULL) {
|
||||
|
||||
if (SystemFlags::getSystemSettingType(SystemFlags::debugSystem).enabled) SystemFlags::OutputDebug(SystemFlags::debugSystem, "In [%s::%s Line: %d]\n", __FILE__, __FUNCTION__, __LINE__);
|
||||
|
||||
ptr = this;
|
||||
MutexSafeWrapper safeMutexMasterList(&mutexMasterThreadList);
|
||||
masterThreadList[ptr]++;
|
||||
|
@@ -379,11 +379,11 @@ namespace Shared {
|
||||
unsigned int millisecsBetweenExecutions,
|
||||
bool needTaskSignal,
|
||||
void *userdata, bool wantSetupAndShutdown) : BaseThread(),
|
||||
simpleTaskInterface(NULL),
|
||||
overrideShutdownTask(NULL),
|
||||
mutexSimpleTaskInterfaceValid(new Mutex(CODE_AT_LINE)),
|
||||
simpleTaskInterface(NULL),
|
||||
mutexTaskSignaller(new Mutex(CODE_AT_LINE)),
|
||||
mutexLastExecuteTimestamp(new Mutex(CODE_AT_LINE)) {
|
||||
mutexLastExecuteTimestamp(new Mutex(CODE_AT_LINE)),
|
||||
overrideShutdownTask(NULL) {
|
||||
|
||||
uniqueID = "SimpleTaskThread";
|
||||
this->simpleTaskInterface = simpleTaskInterface;
|
||||
@@ -391,7 +391,6 @@ namespace Shared {
|
||||
this->executionCount = executionCount;
|
||||
this->millisecsBetweenExecutions = millisecsBetweenExecutions;
|
||||
this->needTaskSignal = needTaskSignal;
|
||||
this->overrideShutdownTask = NULL;
|
||||
this->userdata = userdata;
|
||||
this->wantSetupAndShutdown = wantSetupAndShutdown;
|
||||
//if(this->userdata != NULL) {
|
||||
|
@@ -135,7 +135,8 @@ namespace Shared {
|
||||
// =====================================
|
||||
Thread::Thread() : thread(NULL),
|
||||
mutexthreadAccessor(new Mutex(CODE_AT_LINE)),
|
||||
deleteAfterExecute(false), currentState(thrsNew) {
|
||||
currentState(thrsNew),
|
||||
deleteAfterExecute(false) {
|
||||
addThreadToList();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user