waitfor(3)

NAME
waitfor, waitwhile -- RCCL blocking primitives.

USAGE
#include <rccl.h>

waitfor (cond);

waitwhile (cond);

ARGUMENTS

cond --
    A logical expression.

DESCRIPTION
waitfor() waits until the indicated logical expression returns true.

waitwhile() waits until the indicated logical expression returns false.

These macros are implemented using a simple busy-loop. When called from the planning level, rcclBlock() is called once before each test. This is useful because it means that at least one trajectory cycle will elapse between when the macro is entered and the condition is first tested.

SEE ALSO
rcclBlock(3).