Offload KB - offload-library
Old Content Alert
Please note that this is a old document archive and the will most likely be out-dated or superseded by various other products and is purely here for historical purposes.
int offloadThreadTryJoin(unsigned int threadID)
Checks to see whether a given Offload thread may be joined instantly without a wait state.
The return value dictates the state of threadID.
Return 1: The Offload thread represented by threadID has completed, and calling join will not initiate a waiting state and sleep.
Return 0: The Offload thread represented by threadID is still active, and calling join may initiate a waiting or sleeping state.
A negative return value indicates an error has occured. If an invalid threadID is provided, behaviour is undefined.