48 #ifndef _MIRA_THREADMONITOR_H_ 49 #define _MIRA_THREADMONITOR_H_ 131 void addThisThread(
const std::string& pName);
136 void removeThisThread();
142 void removeThread(
const boost::thread& pThread);
148 void removeThread(
const boost::thread::id& pThreadID);
154 void removeThread(
ThreadID pThreadID);
187 boost::thread::id bid;
191 typedef std::map<ThreadID, PrivateData> ThreadMap;
193 boost::mutex mThreadsMutex;
Duration kernel_time
The time amount in kernel-mode.
Definition: ThreadMonitor.h:170
Time create_time
Thread creation time in UTC.
Definition: ThreadMonitor.h:168
specialize cv::DataType for our ImgPixel and inherit from cv::DataType<Vec>
Definition: IOService.h:67
ThreadID id
Native thread ID (not boost::thread::native_handle_type!)
Definition: ThreadMonitor.h:165
Time and Duration wrapper class.
uint32 ThreadID
Platform independent thread ID.
Definition: ThreadID.h:68
Provided for convenience.
Definition: Singleton.h:564
Wrapper class for boost::posix_time::ptime for adding more functionality to it.
Definition: Time.h:416
OS independent thread id.
Includes, defines and functions for threads.
A singleton class that can be freely configured using policies that control the creation, instantiation, lifetime and thread-safety.
Use this class to represent time durations.
Definition: Time.h:104
std::vector< ThreadInfo > ThreadInfoVector
Definition of a vector of thread information.
Definition: ThreadMonitor.h:174
bool known
Indicates whether this thread is known by the ThreadMonitor.
Definition: ThreadMonitor.h:164
boost::thread::id bid
Boost thread ID.
Definition: ThreadMonitor.h:166
std::string name
The name of the thread.
Definition: ThreadMonitor.h:167
Duration user_time
The time amount in user-mode.
Definition: ThreadMonitor.h:169
A thread monitor class.
Definition: ThreadMonitor.h:108
A thread information type.
Definition: ThreadMonitor.h:163