singleton mapping the pthread ID to the Gaudi thread ID
More...
#include <GaudiKernel/ThreadGaudi.h>
singleton mapping the pthread ID to the Gaudi thread ID
- Author
- Werner Wiedenmann
- Id:
- ThreadGaudi.h,v 1.3 2003/06/25 15:45:10 mato Exp
Definition at line 15 of file ThreadGaudi.h.
| ThreadGaudi::ThreadGaudi |
( |
| ) |
|
|
protected |
| ThreadGaudi::~ThreadGaudi |
( |
| ) |
|
|
protectedvirtual |
| const std::string & ThreadGaudi::getThreadID |
( |
| ) |
|
get Gaudi ID of current pthread
Definition at line 117 of file ThreadGaudi.cpp.
{
if ( p_threadMap->find(s_pid) != p_threadMap->end() ) {
return (*p_threadMap->find(s_pid)).
second ;
} else {
return (*p_threadMap->find(0)).
second ; ;
}
}
| void ThreadGaudi::setThreadID |
( |
const std::string & |
threadID | ) |
|
associate Gaudi ID to pthread
Definition at line 101 of file ThreadGaudi.cpp.
{
if (p_threadMap->count(s_pid) == 0 ) {
(*p_threadMap)[s_pid] = threadID ;
#ifdef THREAD_GAUDI__DEBUG
std::cout << " *** ThreadGaudi setThreadID *** value set for *** " << threadID << " thread ID : " << s_pid << std::endl ;
#endif
}
}
The documentation for this class was generated from the following files:
- /afs/.cern.ch/sw/Gaudi/releases/GAUDI/GAUDI_v25r2/GaudiKernel/GaudiKernel/ThreadGaudi.h
- /afs/.cern.ch/sw/Gaudi/releases/GAUDI/GAUDI_v25r2/GaudiKernel/src/Lib/ThreadGaudi.cpp