Douglas C. Schmidt
2005-05-21 00:15:56 UTC
Hi,
static int join (ACE_thread_t thread_id,
ACE_thread_t *departed,
ACE_THR_FUNC_RETURN *status);
If so, the documentation was confusing. Here's what it says now:
/// Wait for one or more threads to exit and reap their exit status.
/// thr_join() returns successfully when the target thread terminates.
///
/// If a thr_join() call returns successfully with a non-null
/// status argument, the value passed to thr_exit(3T) by the
/// terminating thread will be placed in the location referenced
/// by status.
///
/// If the target thread ID is 0, thr_join() waits for any
/// undetached thread in the process to terminate on platforms that
/// support this capability (namely Solaris).
///
/// If departed is not 0, it points to a location that is set
/// to the ID of the terminated thread if thr_join() returns
/// successfully.
Take care,
Doug
When using the Ace_Thread::join() to wait for one or more threads to
exit, how does ACE know how large the array of ace thread id's is?
Is this the function you're discussing:exit, how does ACE know how large the array of ace thread id's is?
static int join (ACE_thread_t thread_id,
ACE_thread_t *departed,
ACE_THR_FUNC_RETURN *status);
If so, the documentation was confusing. Here's what it says now:
/// Wait for one or more threads to exit and reap their exit status.
/// thr_join() returns successfully when the target thread terminates.
///
/// If a thr_join() call returns successfully with a non-null
/// status argument, the value passed to thr_exit(3T) by the
/// terminating thread will be placed in the location referenced
/// by status.
///
/// If the target thread ID is 0, thr_join() waits for any
/// undetached thread in the process to terminate on platforms that
/// support this capability (namely Solaris).
///
/// If departed is not 0, it points to a location that is set
/// to the ID of the terminated thread if thr_join() returns
/// successfully.
Take care,
Doug
--
Dr. Douglas C. Schmidt Professor and Associate Chair
Electrical Engineering and Computer Science TEL: (615) 343-8197
Institute for Software Integrated Systems WEB: www.dre.vanderbilt.edu/~schmidt
Vanderbilt University, Nashville TN, 37203 NET: ***@vanderbilt.edu
Dr. Douglas C. Schmidt Professor and Associate Chair
Electrical Engineering and Computer Science TEL: (615) 343-8197
Institute for Software Integrated Systems WEB: www.dre.vanderbilt.edu/~schmidt
Vanderbilt University, Nashville TN, 37203 NET: ***@vanderbilt.edu