void *osdThreadWait(void *tid,long block)
Returns the thread handle of the completed child thread.
If multiple children are complete and tid
is NULL, any of the completed children's handles may be returned.
The order of returning child handles in this manner should be considered arbitrary.
The contents of the thread handle are OS dependent and should not be
operated on outside the OSD library.
If there are no completed children and blocking is not requested,
NULL is immediately returned.
| tid | the thread identifier returned by osdThreadSpawn(), or NULL to wait for any child. |
| block | TRUE causes function to block until the child(ren) exit(s). |