1 #ifndef GAUDI_KERNEL_THREADLIBGAUDI_H
2 #define GAUDI_KERNEL_THREADLIBGAUDI_H
4 #include "GaudiKernel/System.h"
17 typedef std::map< System::ThreadHandle , std::string > ThreadMap;
21 void setThreadID(
const std::string& threadID) ;
23 ThreadMap* getThreadMap() ;
25 const std::string& getThreadID() ;
30 ThreadMap* m_threadMap ;
42 #endif // GAUDI_KERNEL_THREADLIBGAUDI_H
GAUDI_API std::string getGaudiThreadIDfromName(const std::string &name)
helper function to extract Gaudi Thread ID from thread copy name
GAUDI_API bool isGaudiThreaded(const std::string &name)
test if current Gaudi object is running /will run in a thread
GAUDI_API std::string getGaudiThreadGenericName(const std::string &name)
helper function to extract Gaudi instance name from thread copy name
singleton mapping the pthread ID to the Gaudi thread ID
GAUDI_API std::string getGaudiThreadIDfromID(int iCopy)
helper function to extract Gaudi Thread ID from thread copy number