summaryrefslogtreecommitdiff
path: root/ace/OS.cpp
diff options
context:
space:
mode:
authorlevine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1998-01-24 04:05:57 +0000
committerlevine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1998-01-24 04:05:57 +0000
commit57d16e0e25500c2d00293817d3e2b9e16c6fa195 (patch)
treeac2cc971ab735885be78749299ec9cc0d1708e56 /ace/OS.cpp
parent11c13eb8f3de398e6369a80e11aa2c42f70bb37f (diff)
downloadATCD-57d16e0e25500c2d00293817d3e2b9e16c6fa195.tar.gz
(thr_create): On VxWorks, use strncmp instead of strcmp to check for allocated thread ID
Diffstat (limited to 'ace/OS.cpp')
-rw-r--r--ace/OS.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/ace/OS.cpp b/ace/OS.cpp
index 79955a33d8f..58844e8f7f6 100644
--- a/ace/OS.cpp
+++ b/ace/OS.cpp
@@ -2383,8 +2383,9 @@ ACE_OS::thr_create (ACE_THR_FUNC func,
if (flags == 0) flags = VX_FP_TASK;
if (stacksize == 0) stacksize = 20000;
- const u_int thr_id_provided = thr_id && ACE_OS::strcmp (*thr_id,
- "==ace_t==");
+ const u_int thr_id_provided = thr_id && ACE_OS::strncmp (*thr_id,
+ "==ace_t==",
+ 9);
ACE_hthread_t tid;
#if 0 /* Don't support setting of stack, because it doesn't seem to work. */