-/* Copyright (c) 2006-2017. The SimGrid Team. All rights reserved. */
+/* Copyright (c) 2006-2018. 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. */
s4u::CommPtr Mailbox::put_init(void* data, uint64_t simulatedSize)
{
s4u::CommPtr res = put_init();
- res->setRemains(simulatedSize);
+ res->set_remaining(simulatedSize);
res->srcBuff_ = data;
res->srcBuffSize_ = sizeof(void*);
return res;
xbt_assert(payload != nullptr, "You cannot send nullptr");
CommPtr c = put_init();
- c->setRemains(simulatedSize);
+ c->set_remaining(simulatedSize);
c->setSrcData(payload);
c->wait();
}
xbt_assert(payload != nullptr, "You cannot send nullptr");
CommPtr c = put_init();
- c->setRemains(simulatedSize);
+ c->set_remaining(simulatedSize);
c->setSrcData(payload);
// c->start() is optional.
c->wait(timeout);