+void PlaQui::Server::Runnable::finish(bool attach) {
+#ifdef DEBUG
+ std::cerr << __FILE__ << ": attach = " << attach << std::endl;
+#endif // DEBUG
+ // TODO - necesita un mutex?
+ stop = true;
+ if (attach) {
+ thread->join();
+ }
+}
+
+PlaQui::Server::Runnable::SignalFinished&
+PlaQui::Server::Runnable::signal_finished(void) {
+ return finished;
+}
+