Moved intializers into constructor.

This commit is contained in:
Robert Osfield
2016-06-23 08:41:47 +01:00
parent 954f782807
commit 55d0e6918d
2 changed files with 14 additions and 11 deletions

View File

@@ -41,7 +41,20 @@ class PThreadPrivateData {
private:
PThreadPrivateData() {};
PThreadPrivateData()
{
stackSize = 0;
stackSizeLocked = false;
idSet = false;
setRunning(false);
isCanceled = false;
tid = 0;
uniqueId = nextId;
nextId++;
threadPriority = Thread::THREAD_PRIORITY_DEFAULT;
threadPolicy = Thread::THREAD_SCHEDULE_DEFAULT;
cpunum = -1;
};
virtual ~PThreadPrivateData() {};