Fixed libstreflop warnings

This commit is contained in:
mathusummut
2018-10-04 17:58:42 +02:00
parent 50a9339e09
commit 171415cc11
5 changed files with 17 additions and 17 deletions

View File

@@ -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]++;

View File

@@ -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) {

View File

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