7#ifndef __WVSUBPROCQUEUE_H
8#define __WVSUBPROCQUEUE_H
84 void add(
void *cookie,
const char *cmd,
const char *
const *argv);
126 if (proc)
delete proc;
138 bool cookie_running();
An ordered queue of WvSubProc instances.
unsigned running() const
Return the number of currently running processes.
bool isempty() const
True if there are no unfinished (ie. running or waiting) processes.
unsigned remaining() const
Return the number of 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 ...
WvSubProcQueue(unsigned _maxrunning)
Create a WvSubProcQueue.
void add(void *cookie, WvSubProc *proc)
Enqueue a process.
void finish()
Wait synchronously for all processes in the entire queue to finish.