Wait for a thread to finish running and cleanup.
This function should always be called prior to PCRThread_Destroy.
- Parameters
-
thread | The thread for which to wait. |
- Returns
- Returns PCRSTATUS_OK if successful, or PCRSTATUS_ERROR if there was an error.
- Exceptions
-
Returns | PCRSTATUS_ERROR if there was an error. |
- See Also
- PCRThread_Destroy
-
PCRThread_Create