GemaCoreLib
The GeMA Core library
Classes | Variables
gmThreadManager.cpp File Reference

Implementation of the GmThreadManager class. More...

#include "gmThreadManager.h"
#include <QThread>
#include <qtHwInfo.h>
#include <luaEnv.h>
#include <assert.h>
#include "gmTrace.h"
#include "gmSimulationData.h"
#include "gmThreadLocalStorage.h"
#include "gmOmp.h"
#include "gmValueSetData.h"
Include dependency graph for gmThreadManager.cpp:

Classes

class  GmInternalThread
 The internal thread class, inheriting from QThread, used for calling the GmThread::run() method. More...
 

Variables

GmThreadLocal int GmThreadManagerThreadId = 0
 Local storage for thread ids. More efficient than using QThread::currentThread() for then accessing the thread id stored in the GmThread object. More...
 

Detailed Description

Implementation of the GmThreadManager class.

Author
Carlos Augusto Teixeira Mendes
Date
may, 2019

Variable Documentation

◆ GmThreadManagerThreadId

GmThreadLocal int GmThreadManagerThreadId = 0

Local storage for thread ids. More efficient than using QThread::currentThread() for then accessing the thread id stored in the GmThread object.

Can not be a static member of GmThreadManager due to the GMC_API_EXPORT macro (thread variables can not have DLL interface).