X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/53e3b26debedd9ec4e16c8f72d9e476f7e6f82c7..1b4dc02411d79e4c367d331b85c1b295ec41edff:/examples/msg/maestro-set/maestro-set.cpp diff --git a/examples/msg/maestro-set/maestro-set.cpp b/examples/msg/maestro-set/maestro-set.cpp index c1ab4d27f2..5663d7870d 100644 --- a/examples/msg/maestro-set/maestro-set.cpp +++ b/examples/msg/maestro-set/maestro-set.cpp @@ -1,24 +1,24 @@ -/* Copyright (c) 2007-2016. The SimGrid Team. All rights reserved. */ +/* Copyright (c) 2007-2019. The SimGrid Team. All rights reserved. */ /* This program is free software; you can redistribute it and/or modify it * under the terms of the license (GNU LGPL) which comes with this package. */ /** @addtogroup MSG_examples * - * - maestro-set/maestro-set.cpp: Switch the system thread hosting our maestro. + * - maestro-set/maestro-set.cpp: Switch the system thread hosting our maestro. * That's a very advanced example in which we move the maestro thread to another process. * Not many users need it (maybe only one, actually), but this example is also a regression test. - * + * * This example is in C++ because we use C++11 threads to ensure that the feature is working as * expected. You can still use that feature from a C code. */ #include "simgrid/msg.h" -XBT_LOG_NEW_DEFAULT_CATEGORY(msg_test, "Messages specific for this msg example"); - #include +XBT_LOG_NEW_DEFAULT_CATEGORY(msg_test, "Messages specific for this msg example"); + std::thread::id root_id; static void ensure_root_tid() {