gate-open-p

Arguments:
gate

The gate argument must have been allocated with make-gate. Returns
true if gate's state is open
and returns nil if it is closed.

As described in the documentation for gates linked to below, gate-open-p is handled specially by
process-wait, and so code
which uses gates runs more efficiently. The speedup can be significant
if the process often waits.