spoon - chung-leong/qb GitHub Wiki

spoon() - Revert to single-threaded execution

void spoon(void)

spoon() stops execution of forked copies of the current function if its fork id is not zero. The zeroth fork will continue to run after all the other forks have exited.

It's not necessary to use spoon() if the action that immediately follows is return and the function does not return a value.

Return Value

None

Version

2.0 and above.