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.
void offloadSetFiberProcs(int(*hasfiber)(void), void(*yield)(void));
This sets callbacks for use within the offloadThreadJoin function. If a fiber system other than the supplied platform fiber system is used, you can use this function to make the Offload runtime aware. If the runtime wants a PPU thread to sleep while waiting for an Offload thread to join, first the hasfiber function pointer will be used. If a non-zero value is returned, the yield function pointer will be invoked.
Calling this function with NULL as either argument will result in undefined behaviour.