ok, explain why you are getting the thread_info, nothing is done with it.
and what about the other stuff?
=)
Alan
Jonas Sundstrom wrote:
Alan Westbrook <alan@xxxxxxxxxxxxxx> wrote: ...
status_t status = B_OK; thread_info thread_info; status = get_thread_info (fThreadId, &thread_info);
...
if (status == B_OK) {
...
1) using get_thread_info to see if the thread is ok is susceptable to race conditions.
if (status == B_OK) doesn't test if the thread is ok, but whether or not get_thread_info() was successful.
/Jonas Sundström. www.kirilla.com