X-Git-Url: https://git.ucc.asn.au/?p=progcomp2012.git;a=blobdiff_plain;f=judge%2Fmanager%2Fprogram.h;h=b01ce00da8c7cbe5a4de12a44ab6aa19d24ada5f;hp=01e00bce1ba01f428e9f8dc78c0b133664948f67;hb=38c6e9b9fc245ca5e6e6cee2806cb64dcbd34e35;hpb=1dc2550dc93d6b0ab2cde1cd2fc76a2cf45faf21 diff --git a/judge/manager/program.h b/judge/manager/program.h index 01e00bc..b01ce00 100644 --- a/judge/manager/program.h +++ b/judge/manager/program.h @@ -24,7 +24,9 @@ class Program bool GetMessage(std::string & buffer, double timeout=-1); //Retrieves a message, or waits for a timeout (if positive) bool Running() const; - + bool Paused() const; + bool Pause(); + bool Continue(); protected: @@ -33,6 +35,7 @@ class Program private: pid_t pid; //Process ID of the program wrapped + bool paused; };