]> AND Public Git Repository - simgrid.git/blobdiff - examples/s4u/synchro-semaphore/s4u-synchro-semaphore.cpp
Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
try to fix CI
[simgrid.git] / examples / s4u / synchro-semaphore / s4u-synchro-semaphore.cpp
index f12994008a1d862dc43124deb07bcf8b025b5666..3921539c1f673592082a6458e835a5db3fcfdeda 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (c) 2006-2019. 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. */
@@ -16,8 +16,7 @@ const char* buffer;                                                        /* Wh
 simgrid::s4u::SemaphorePtr sem_empty = simgrid::s4u::Semaphore::create(1); /* indicates whether the buffer is empty */
 simgrid::s4u::SemaphorePtr sem_full  = simgrid::s4u::Semaphore::create(0); /* indicates whether the buffer is full */
 
-
-static void producer(std::vector<std::string>* args)
+static void producer(const std::vector<std::string>* args)
 {
   for (auto str : *args) {
     sem_empty->acquire();