\input manualMacros.tex
\manBegin
\manPageInfo{RCCL Reference Manual}{}{}
\manTitle{waitfor}{3}
\manSection{NAME}
{\rightskip=0ptplus1fil
{\tt \manName{waitfor}},
{\tt \manName{waitwhile}}
-- RCCL blocking primitives.

}
\manSection{USAGE}
\cverbatim
#include <rccl.h>

waitfor (cond);

waitwhile (cond);
@endcverbatim
\manSection{ARGUMENTS}
\manItem{{\tt cond} --}
A logical expression.
\manSection{DESCRIPTION}
{\tt waitfor()} waits until the indicated logical expression returns
true.

{\tt waitwhile()} waits until the indicated logical expression returns
false.

These macros are implemented using a simple busy-loop.
When called from the planning level, {\tt rcclBlock()} is called
once {\it 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.
\manSection{SEE ALSO}
\rightskip=0ptplus1fil
{\tt rcclBlock(3)}.
\manEnd
\end
