summaryrefslogtreecommitdiff
path: root/ACE/ace/OS_NS_Thread.h
diff options
context:
space:
mode:
Diffstat (limited to 'ACE/ace/OS_NS_Thread.h')
-rw-r--r--ACE/ace/OS_NS_Thread.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/ACE/ace/OS_NS_Thread.h b/ACE/ace/OS_NS_Thread.h
index 2cbe9679a77..c6db5db25df 100644
--- a/ACE/ace/OS_NS_Thread.h
+++ b/ACE/ace/OS_NS_Thread.h
@@ -1720,6 +1720,11 @@ namespace ACE_OS {
ACE_NAMESPACE_INLINE_FUNCTION
const char* thr_name (void);
+ // Stores a string version of the current thread id into buffer and
+ // returns the size of this thread id in bytes.
+ ACE_NAMESPACE_INLINE_FUNCTION
+ ssize_t thr_id (char buffer[], size_t buffer_length);
+
/// State is THR_CANCEL_ENABLE or THR_CANCEL_DISABLE
ACE_NAMESPACE_INLINE_FUNCTION
int thr_setcancelstate (int new_state, int *old_state);