int start_clients();
// The render farm must wait for all the clients to finish.
int wait_clients();
+// number of running clients
+ int active_clients();
// Likewise the render farm must check the internal render loop before
// dispatching the next job and whenever a client queries for errors.
class RenderFarmWatchdog : public Thread
{
public:
-// use_pid - causes it to kill the pid instead of cancel the thread
-// Used for client.
- RenderFarmWatchdog(RenderFarmServerThread *server,
- RenderFarmClientThread *client);
+ RenderFarmWatchdog(int timeout_secs,
+ RenderFarmServerThread *server, RenderFarmClientThread *client);
~RenderFarmWatchdog();
// Called at the beginning of a socket read
Condition *request_complete;
int done;
int pid;
+ int timeout_usecs;
};