ThreadInfoManager Class
The ThreadInfoManager enables users to output thread information. More...
Header: | #include <OSAPI/Process/OSAPIThreadInfoManager.h> |
Public Functions
void | AddThread(ThreadInfo info) |
void | EditThreadInfo(OSAPITASK_HANDLE_TYPE tidPOSIX, int pid, OSAPITASK_ID_TYPE tidOS) |
int | GetNumberOfThreads() |
std::string | GetThreadName(OSAPITASK_HANDLE_TYPE tidPOSIX) |
OSAPITASK_ID_TYPE | GetThreadOStid(OSAPITASK_HANDLE_TYPE tidPOSIX) |
void | PrintThreadList(const char *appName) |
void | RemoveThread(OSAPITASK_HANDLE_TYPE threadHandle) |
Static Public Members
ThreadInfoManager * | GetInstance() |
Detailed Description
The ThreadInfoManager enables users to output thread information.
Member Function Documentation
void ThreadInfoManager::AddThread(ThreadInfo info)
Add new thread to the list.
void ThreadInfoManager::EditThreadInfo(OSAPITASK_HANDLE_TYPE tidPOSIX, int pid, OSAPITASK_ID_TYPE tidOS)
Add pid and tidOS to ThreadInfo with tidPOSIX if it exists.
[static]
ThreadInfoManager *ThreadInfoManager::GetInstance()
Returns the ThreadInfoManager instance.
int ThreadInfoManager::GetNumberOfThreads()
Returns the number of threads in the list.
std::string ThreadInfoManager::GetThreadName(OSAPITASK_HANDLE_TYPE tidPOSIX)
Returns the thread name.
OSAPITASK_ID_TYPE ThreadInfoManager::GetThreadOStid(OSAPITASK_HANDLE_TYPE tidPOSIX)
Returns the OS thread id.
void ThreadInfoManager::PrintThreadList(const char *appName)
Prints the list of threads showing pid, tid and thread name.
void ThreadInfoManager::RemoveThread(OSAPITASK_HANDLE_TYPE threadHandle)
Remove thread from the list (also called by OSAPITask::Stop()).
Get started with CDP Studio today
Let us help you take your great ideas and turn them into the products your customer will love.