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

Public GIT Repository
Current XBT_ATTRIB_DEPRECATED is v334. Fix last changes.
[simgrid.git] / examples / cpp / io-priority / s4u-io-priority.cpp
index 1c8f4785ec2feaf22b5b0682a248aa3ce1ee5935..33af0f48a900367cbfa2dd66e9e717a6e94cc297 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (c) 2010-2021. The SimGrid Team. All rights reserved.          */
+/* Copyright (c) 2010-2022. 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. */
@@ -29,7 +29,7 @@ static void privileged_writer()
    * Since the priority is 2, it writes twice as fast as a regular one.
    *
    * So instead of a half/half sharing between the two, we get a 1/3 vs. 2/3 sharing. */
-  disk_list.front()->io_init(4000000, simgrid::s4u::Io::OpType::WRITE)->set_priority(2)->wait();
+  disk_list.front()->write(4000000, 2);
   XBT_INFO("First write done.");
 
   /* Note that the timings printed when running this example are a bit misleading, because the uneven sharing only last