X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/b77b6baea7aa7e0d4e2fe4772a850af6dbf233d7..3d9d98b8db89fbb8b6907f5875e82607712e0731:/src/gras/Msg/gras_msg_listener.c?ds=sidebyside diff --git a/src/gras/Msg/gras_msg_listener.c b/src/gras/Msg/gras_msg_listener.c index c1862247c8..3d74618de4 100644 --- a/src/gras/Msg/gras_msg_listener.c +++ b/src/gras/Msg/gras_msg_listener.c @@ -53,6 +53,7 @@ gras_msg_listener_launch(xbt_queue_t msg_exchange){ arg->incomming_messages = msg_exchange; arg->listener = xbt_thread_create("listener",listener_function,arg); + gras_os_sleep(0); /* give the listener a chance to initialize even if the main is empty and we cancel it right afterward */ return arg; }