diff options
author | levine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1998-07-02 16:21:05 +0000 |
---|---|---|
committer | levine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1998-07-02 16:21:05 +0000 |
commit | c97a28490c50e38be4ef3e82d7e6894ac34efb09 (patch) | |
tree | 3ffe439e58590f6a3d0953591d37951a65f5932f /ace/Thread_Manager.cpp | |
parent | 60f321aa9644d03f2f8d819591a75b9bba35c1c9 (diff) | |
download | ATCD-c97a28490c50e38be4ef3e82d7e6894ac34efb09.tar.gz |
(spawn_i): on VxWorks only, augmented comments
Diffstat (limited to 'ace/Thread_Manager.cpp')
-rw-r--r-- | ace/Thread_Manager.cpp | 8 |
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 |