diff options
author | Fred Hornsey <fred@hornsey.us> | 2019-04-17 22:48:47 -0500 |
---|---|---|
committer | Fred Hornsey <fred@hornsey.us> | 2019-04-17 22:48:47 -0500 |
commit | 756b05669ff1178967c840734ac42e2e7d2b8db2 (patch) | |
tree | 84ddcde112162c6cda859170930fa232a17eeae2 /ACE/ace/OS_NS_Thread.h | |
parent | 14531f70716a70092d65052e3d3334f52f05c519 (diff) | |
download | ATCD-756b05669ff1178967c840734ac42e2e7d2b8db2.tar.gz |
Respond to PR comments
Diffstat (limited to 'ACE/ace/OS_NS_Thread.h')
-rw-r--r-- | ACE/ace/OS_NS_Thread.h | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/ACE/ace/OS_NS_Thread.h b/ACE/ace/OS_NS_Thread.h index 061351c2dcd..d1cea0f96ac 100644 --- a/ACE/ace/OS_NS_Thread.h +++ b/ACE/ace/OS_NS_Thread.h @@ -1754,13 +1754,16 @@ namespace ACE_OS { ACE_NAMESPACE_INLINE_FUNCTION ssize_t thr_id (char buffer[], size_t buffer_length); -#ifdef ACE_HAS_GETTID /** - * Wrapper for pid_t gettid(). For systems that support it (only Linux as of - * writing), get the system-wide thread id (TID) for the current thread. + * For systems that support it (Only Linux as of writing), this is wrapper + * for pid_t gettid(). * - * These are similar to PIDs and, on x86 Linux at least, are much shorter - * than the what is returned from thr_id(), which is represents a address. + * It returns the system-wide thread id (TID) for the current thread. These + * are similar to PIDs and, for x86 Linux at least, are much shorter than + * what is returned from thr_self(), which is an address. + * + * For older Linux (pre 2.4.11) and other systems that don't have gettid(), + * this returns thr_self(). */ pid_t thr_gettid (); @@ -1770,7 +1773,6 @@ namespace ACE_OS { */ ACE_NAMESPACE_INLINE_FUNCTION ssize_t thr_gettid (char buffer[], size_t buffer_length); -#endif /// State is THR_CANCEL_ENABLE or THR_CANCEL_DISABLE ACE_NAMESPACE_INLINE_FUNCTION |