+namespace PlaQui {
+
+namespace Server {
+
+Runnable::~Runnable(void) {
+#ifdef DEBUG
+ cerr << __FILE__ << "(" << __LINE__ << ")"
+ << ": destructor(this = " << this << ")." << endl;
+#endif // DEBUG
+}
+
+Runnable::Runnable(void): _thread(NULL), _stop(false) {
+#ifdef DEBUG
+ cerr << __FILE__ << "(" << __LINE__ << ")"
+ << ": constructor(this = " << this << ")." << endl;
+#endif // DEBUG
+}
+
+void Runnable::static_run(Runnable* runner) {
+#ifdef DEBUG
+ cerr << __FILE__ << "(" << __LINE__ << ")"
+ << ": static_run(runner = " << runner << ")" << endl;
+#endif // DEBUG
+ // Corre tarea.
+ runner->real_run();
+ // Manda señal de tarea finalizada
+ runner->_finished();
+ delete runner;