-/* Copyright (c) 2016-2019. The SimGrid Team. All rights reserved. */
+/* Copyright (c) 2016-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. */
XBT_INFO("Exception caught: %s", e.what());
}
- // Synchronize on a successul Future<int> and get the value:
+ // Synchronize on a successful Future<int> and get the value:
int res = simgrid::simix::kernel_sync([] {
return kernel_wait_until(30).then([](simgrid::kernel::Future<void> f) {
f.get();
});
XBT_INFO("kernel_sync with value returned with %i", res);
- // Synchronize on a successul Future<int> and get the value:
+ // Synchronize on a successful Future<int> and get the value:
simgrid::simix::Future<int> future = simgrid::simix::kernel_async([] {
return kernel_wait_until(50).then([](simgrid::kernel::Future<void> f) {
f.get();
res = future.get();
XBT_INFO("kernel_async with value returned with %i", res);
- // Synchronize on a successul Future<int> and get the value:
+ // Synchronize on a successful Future<int> and get the value:
future = simgrid::simix::kernel_async([] {
return kernel_wait_until(60).then([](simgrid::kernel::Future<void> f) {
f.get();