-/* Copyright (c) 2006-2018. The SimGrid Team. All rights reserved. */
+/* Copyright (c) 2006-2020. 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. */
#include <mutex> /* std::mutex and std::lock_guard */
#include "simgrid/s4u.hpp" /* All of S4U */
-#define NB_ACTOR 6
+constexpr int NB_ACTOR = 6;
XBT_LOG_NEW_DEFAULT_CATEGORY(s4u_test, "a sample log category");
mutex->lock();
XBT_INFO("Hello s4u, I'm ready to compute after a regular lock");
- // And finaly add it to the results
+ // And finally add it to the results
result += 1;
XBT_INFO("I'm done, good bye");