7 #ifndef __WVSUBPROCQUEUE_H 8 #define __WVSUBPROCQUEUE_H 10 #include "wvsubproc.h" 84 void add(
void *cookie,
const char *cmd,
const char *
const *argv);
126 if (proc)
delete proc;
138 bool cookie_running();
142 #endif // __WVSUBPROCQUEUE_H
int go()
Clean up after any running processes in the queue, and start running additional processes if any are ...
void add(void *cookie, WvSubProc *proc)
Enqueue a process.
bool isempty() const
True if there are no unfinished (ie. running or waiting) processes.
unsigned running() const
Return the number of currently running processes.
unsigned remaining() const
Return the number of unfinished (ie. running or waiting) processes.
WvSubProcQueue(unsigned _maxrunning)
Create a WvSubProcQueue.
void finish()
Wait synchronously for all processes in the entire queue to finish.
An ordered queue of WvSubProc instances.