osdThreadWait

osdThreadWait

osd

1998 12-05


NAME

osdThreadWait - wait on a child thread of execution


SYNOPSIS

void *osdThreadWait(void *tid,long block)

osdThreadWait() checks for the completion of a child thread, blocking if requested. If no specific child is designated, any completed child can cause the call to return non-NULL.


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.


ARGUMENTS


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).