A simple helper class which provides the means to identify threads.
More...
#include <Imt.Base.OS.WinEC7/ThreadIdMapper.h>
A simple helper class which provides the means to identify threads.
◆ ThreadIdMapper()
imt::base::os::winec7::ThreadIdMapper::ThreadIdMapper |
( |
void |
| ) |
|
|
explicit |
◆ ~ThreadIdMapper()
virtual imt::base::os::winec7::ThreadIdMapper::~ThreadIdMapper |
( |
void |
| ) |
|
|
virtual |
◆ getNumberOfRegisteredThreads()
uint32_t imt::base::os::winec7::ThreadIdMapper::getNumberOfRegisteredThreads |
( |
void |
| ) |
const |
Returns the number of thread which are currently registered in the mapper.
- Returns
- Number of registered threads
◆ getThreadName()
std::wstring imt::base::os::winec7::ThreadIdMapper::getThreadName |
( |
const uint32_t |
threadId | ) |
|
Returns the name of a thread for a given id.
- Parameters
-
threadId | The numeric id of the thread |
- Returns
- The name of the thread
◆ registerThread()
void imt::base::os::winec7::ThreadIdMapper::registerThread |
( |
const uint32_t |
threadId, |
|
|
const std::wstring & |
threadName |
|
) |
| |
Registers a thread.
- Parameters
-
threadId | The numeric id of the thread |
threadName | The name of the thread |
◆ removeThread() [1/2]
void imt::base::os::winec7::ThreadIdMapper::removeThread |
( |
const std::wstring & |
threadName | ) |
|
Removes a thread from the map.
- Parameters
-
threadName | The name of the thread |
◆ removeThread() [2/2]
void imt::base::os::winec7::ThreadIdMapper::removeThread |
( |
const uint32_t |
threadId | ) |
|
Removes a thread from the map.
- Parameters
-
threadId | The numeric id of the thread |
The documentation for this class was generated from the following file: