• Skip to main content
  • Skip to header right navigation
  • Skip to site footer
CDP Studio logo

CDP Studio

The no-code and full-code software development tool for distributed control systems and HMI

  • Why CDP
    • Software developers
    • Automation engineers
    • Managers
  • Product
    • Design UI
    • Develop
    • Analyze and test
    • Deploy
    • Framework and toolbox
    • Compatibility
  • Services
  • Use cases
  • Pricing
  • Try CDP

CDP Studio Documentation

  • Framework - CDP Core
  • ThreadInfoManager
  • 4.11.14

ThreadInfoManager Class

The ThreadInfoManager enables users to output thread information. More...

Header: #include <OSAPI/Process/OSAPIThreadInfoManager.h>
  • List of all members, including inherited members

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()).

The content of this document is confidential information not to be published without the consent of CDP Technologies AS.

CDP Technologies AS, www.cdpstudio.com

Get started with CDP Studio today

Let us help you take your great ideas and turn them into the products your customer will love.

Try CDP Studio for free
Why CDP Studio?

CDP Technologies AS
Hundsværgata 8,
P.O. Box 144
6001 Ålesund, Norway

Tel: +47 990 80 900
E-mail: info@cdptech.com

Company

About CDP

Contact us

Services

Partners

Blog

Developers

Get started

User manuals

Support

Document download

Release notes

Follow CDP

  • LinkedIn
  • YouTube
  • GitHub

    © Copyright 2022 CDP Technologies. Privacy and cookie policy.

    Return to top