Skip to content

Commit 728e90d

Browse files
authored
Merge pull request #2446 from mitza-oci/ace6-windows-thread-names
[ACE 6] Conditional compilation for Windows thread names
2 parents 509f4be + 724c7de commit 728e90d

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

ACE/ace/OS_NS_Thread.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4113,10 +4113,12 @@ ACE_OS::thr_create (ACE_THR_FUNC func,
41134113
flags,
41144114
thr_id);
41154115

4116+
# ifndef ACE_LACKS_SETTHREADDESCRIPTION
41164117
if (thr_name && *thr_name && *thr_handle)
41174118
{
41184119
SetThreadDescription (*thr_handle, ACE_Ascii_To_Wide (*thr_name).wchar_rep ());
41194120
}
4121+
# endif
41204122

41214123
if (priority != ACE_DEFAULT_THREAD_PRIORITY && *thr_handle != 0)
41224124
{

ACE/ace/README

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -990,6 +990,8 @@ ACE_LACKS_SETDETACH Platform lacks
990990
ACE_LACKS_SETSCHED Platform lacks
991991
pthread_attr_setsched()
992992
(e.g. MVS)
993+
ACE_LACKS_SETTHREADDESCRIPTION Platform lacks SetThreadDescription
994+
(e.g. Windows Server 2016)
993995
ACE_LACKS_SIGACTION Platform lacks struct
994996
sigaction (e.g., Win32 and
995997
Chorus)

0 commit comments

Comments
 (0)