Worked out networking
[progcomp2012.git] / judge / manager / program.h
index 01e00bc..b01ce00 100644 (file)
@@ -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 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:
                
 
        protected:
@@ -33,6 +35,7 @@ class Program
 
        private:
                pid_t pid; //Process ID of the program wrapped
 
        private:
                pid_t pid; //Process ID of the program wrapped
+               bool paused;
                
 };
 
                
 };
 

UCC git Repository :: git.ucc.asn.au