X-Git-Url: https://git.llucax.com/z.facultad/75.42/plaqui.git/blobdiff_plain/43203fc1132e402ab5751167ed64196f10f5dedf..bcbe297964b0ad7393385f1dd240448c340ed5ed:/Server/include/plaqui/server/runnable.h diff --git a/Server/include/plaqui/server/runnable.h b/Server/include/plaqui/server/runnable.h index 2d34e6c..7896090 100644 --- a/Server/include/plaqui/server/runnable.h +++ b/Server/include/plaqui/server/runnable.h @@ -52,12 +52,18 @@ namespace Server { /// Thread en el cual correr la tarea. Glib::Thread* thread; - /// Indica si se debe frinalizar la tarea. - bool stop; - /// Señal que indica que se finalizó la tarea. SignalFinished finished; + protected: + + /** + * Indica si se debe frinalizar la tarea. + * + * \todo Poner como privado y poner get() set() con locks. + */ + bool stop; + // Métodos. private: @@ -79,7 +85,7 @@ namespace Server { /** * Destructor. */ - virtual ~Runnable(void) {} + virtual ~Runnable(void); /** * Constructor.