Skip to main content

Summary This article clarifies how to get the thread ID of a thread serving the currently running request.
Environment

Orbix 6.3 C

All Supported Operating Systems

Question/Problem Description How to get the thread ID of the thread currently serving the request
Clarifying Information Orbix work items are being processed by a thread from a thread pool. Orbix provides means to accessing the ID of the thread processing a request work item.
Error Message
Defect/Enhancement Number
Cause
Resolution

The following method provides access to the current thread ID:

IT_CurrentThread::id()

Ensure the following include is available in your code:

#include <it_ts/thread.h>

Workaround
Notes
Attachment

#KnowledgeDocs
#Orbix