Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
cut the backtrace displayed from sthread to the sthread_create to hide useless cruft
[simgrid.git] / examples / cpp / trace-categories / s4u-trace-categories.cpp
index 30a6d30e31baf54ed068313e2a08100da819d2e6..adf6f3d3db43ae32aaf121de49189eff18c90274 100644 (file)
@@ -22,7 +22,7 @@ struct Task {
 
 static void master()
 {
-  auto mbox = sg4::Mailbox::by_name("master_mailbox");
+  auto* mbox = sg4::Mailbox::by_name("master_mailbox");
   for (int i = 0; i < 10; i++) {
     Task task;
     if (i % 2)
@@ -39,7 +39,7 @@ static void master()
 
 static void worker()
 {
-  auto mbox = sg4::Mailbox::by_name("master_mailbox");
+  auto* mbox = sg4::Mailbox::by_name("master_mailbox");
   while (true) {
     auto task = mbox->get_unique<Task>();
     if (task->name == "finalize") {