• 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

  • Doc
  • Why CDP
    • Software developers
    • Automation engineers
    • Managers
  • Products
    • Automation Designer
    • HMI Designer
    • Maritime HMIs
  • Services
  • Use cases
  • Pricing
  • Try CDP

CDP Studio Documentation

  • Framework - CDP Core
  • ThreadInfo
  • 5.0.0

ThreadInfo Class

The ThreadInfo contains information about the thread. More...

Header: #include <ThreadInfo>
  • List of all members, including inherited members

Public Variables

std::string name
int pid
OSAPITASK_ID_TYPE tidOS
OSAPITASK_HANDLE_TYPE tidPOSIX

Detailed Description

The ThreadInfo contains information about the thread.

Member Variable Documentation

std::string ThreadInfo::name

This variable holds name of the thread.

int ThreadInfo::pid

This variable holds process id returned by: 1)LINUX: getpid(), 2)WINDOWS: Currently, same value as tidOS (ThreadId (last argument in CreateThread())).

OSAPITASK_ID_TYPE ThreadInfo::tidOS

This variable holds oS thread id returned by 1)LINUX: gettid() (retrieved by syscall(SYS_gettid)), 2)WINDOWS: ThreadId (last argument in CreateThread()).

OSAPITASK_HANDLE_TYPE ThreadInfo::tidPOSIX

This variable holds pOSIX thread id returned by OSAPITask::GetHandle() (m_threadHandle): 1)LINUX: pthread_create()/pthread_self(), 2)WINDOWS: GetCurrentThread().

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

My account

Follow CDP

  • LinkedIn
  • YouTube
  • GitHub

© Copyright 2025 CDP Technologies. Privacy and cookie policy.

Return to top