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
void add(void *cookie, WvSubProc *proc)
Enqueue a process.
void finish()
Wait synchronously for all processes in the entire queue to finish.
unsigned running() const
Return the number of currently running processes.
An ordered queue of WvSubProc instances.
bool isempty() const
True if there are no unfinished (ie. running or waiting) processes.
int go()
Clean up after any running processes in the queue, and start running additional processes if any are ...
unsigned remaining() const
Return the number of unfinished (ie. running or waiting) processes.
WvSubProcQueue(unsigned _maxrunning)
Create a WvSubProcQueue.