X-Git-Url: https://git.llucax.com/z.facultad/75.42/plaqui.git/blobdiff_plain/ab9300aaf1217f0c3b45dd5f1f1fdc1c5e5bd1be..751302dd67ffdeb0dfe72c4d2a7a2d58303cf5f3:/Server/src/runnable.cpp?ds=inline diff --git a/Server/src/runnable.cpp b/Server/src/runnable.cpp index 7fd4105..cb3ba6f 100644 --- a/Server/src/runnable.cpp +++ b/Server/src/runnable.cpp @@ -61,10 +61,6 @@ void PlaQui::Server::Runnable::run(bool detach) { #endif // DEBUG // Si vamos a correr la tarea en un thread. if (detach) { - // Nos aseguramos de tener threads. - if (!Glib::thread_supported()) { - Glib::thread_init(); - } // Corremos el thread en una funcion estática para poder destruirlo al // finalizar, pasandole el puntero al objeto. thread = Glib::Thread::create( @@ -81,7 +77,6 @@ void PlaQui::Server::Runnable::finish(bool attach) { #ifdef DEBUG std::cerr << __FILE__ << ": finish(attach = " << attach << ")" << std::endl; #endif // DEBUG - // TODO - necesita un mutex? stop = true; if (attach) { thread->join();