proc_status (EVENT name)
Checks how many instances of a given function are running.
Parameters:
name = the name of the function.
Returns:
0 = function not running.
>0 = number of instances running.
Speed:
Medium
Remarks:
The wait_for macro uses proc_status() as a convenient way to check
whether
a
function
is
finished (see example). It is defined in acknex.h:
#define wait_for(function) while (proc_status(function)) wait(1)
Example:
myfunction(myparameter); // call a function with many wait()s (one instance only)
wait_for(myfunction); // wait until myfunction is finished (lite-C only)
See also:
function, wait, proc_late