X-Git-Url: http://git.cinelerra-gg.org/git/?p=goodguy%2Fhistory.git;a=blobdiff_plain;f=cinelerra-5.1%2Fcinelerra%2Frenderfarm.h;h=1391351cccec3f38ad42a31b4952762ba8175119;hp=ec7fb6a92116932b85d013f4b7206cd52346f1b5;hb=HEAD;hpb=30bdb85eb33a8ee7ba675038a86c6be59c43d7bd diff --git a/cinelerra-5.1/cinelerra/renderfarm.h b/cinelerra-5.1/cinelerra/renderfarm.h index ec7fb6a9..1391351c 100644 --- a/cinelerra-5.1/cinelerra/renderfarm.h +++ b/cinelerra-5.1/cinelerra/renderfarm.h @@ -181,6 +181,8 @@ public: 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. @@ -260,10 +262,8 @@ public: 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 @@ -278,6 +278,7 @@ public: Condition *request_complete; int done; int pid; + int timeout_usecs; };