summaryrefslogtreecommitdiff
path: root/ace/Thread_Manager.cpp
diff options
context:
space:
mode:
authorlevine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1998-07-02 16:21:05 +0000
committerlevine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1998-07-02 16:21:05 +0000
commitc97a28490c50e38be4ef3e82d7e6894ac34efb09 (patch)
tree3ffe439e58590f6a3d0953591d37951a65f5932f /ace/Thread_Manager.cpp
parent60f321aa9644d03f2f8d819591a75b9bba35c1c9 (diff)
downloadATCD-c97a28490c50e38be4ef3e82d7e6894ac34efb09.tar.gz
(spawn_i): on VxWorks only, augmented comments
Diffstat (limited to 'ace/Thread_Manager.cpp')
-rw-r--r--ace/Thread_Manager.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/ace/Thread_Manager.cpp b/ace/Thread_Manager.cpp
index c54b83b5d20..9fd931d4568 100644
--- a/ace/Thread_Manager.cpp
+++ b/ace/Thread_Manager.cpp
@@ -508,7 +508,12 @@ ACE_Thread_Manager::spawn_i (ACE_THR_FUNC func,
ACE_hthread_t thr_handle;
#if defined (VXWORKS)
- // On VxWorks, ACE_thread_t is char *.
+ // On VxWorks, ACE_thread_t is char *. If t_id is 0, allocate space
+ // for ACE_OS::thr_create () to store the task name. If t_id is not
+ // 0, and it doesn't point to a 0 char *, then the non-zero char *
+ // will be used for the task name in ACE_OS::thr_create (). If t_id
+ // is not 0, but does point to a 0 char *, the t_id will be set to
+ // point to the task name in the TCB in ACE_OS::thr_create ().
if (t_id == 0)
{
char *thr_id;
@@ -531,6 +536,7 @@ ACE_Thread_Manager::spawn_i (ACE_THR_FUNC func,
stack,
stack_size,
thread_args);
+
if (result != 0)
// _Don't_ clobber errno here! result is either 0 or -1, and
// ACE_OS::thr_create () already set errno! D. Levine 28 Mar 1997