+namespace PlaQui {
+
+namespace Server {
+
+Runnable::~Runnable(void) {
+#ifdef DEBUG
+ cerr << __FILE__ << ": destructor(this = " << this << ")"
+ << endl;
+#endif // DEBUG
+}
+
+Runnable::Runnable(void): thread(0), stop(false) {
+#ifdef DEBUG
+ cerr << __FILE__ << ": constructor." << endl;
+#endif // DEBUG
+}
+
+void Runnable::static_run(Runnable* runner) {
+#ifdef DEBUG
+ cerr << __FILE__ << ": static_run(runner = " << runner << ")"
+ << endl;
+#endif // DEBUG
+ runner->real_run();
+ runner->signal_finished().emit();
+ delete runner;