-e_smx_state_t execute(double flops) {
- smx_synchro_t s = simcall_execution_start(nullptr,flops,1.0/*priority*/,0./*bound*/, 0L/*affinity*/);
- return simcall_execution_wait(s);
+void execute(double flops)
+{
+ smx_activity_t s = simcall_execution_start(nullptr,flops,1.0/*priority*/,0./*bound*/);
+ simcall_execution_wait(s);
+}
+
+void* recv(MailboxPtr chan) // deprecated
+{
+ return chan->get();
+}
+
+void* recv(MailboxPtr chan, double timeout) // deprecated
+{
+ return chan->get(timeout);
+}
+
+void send(MailboxPtr chan, void* payload, double simulatedSize) // deprecated
+{
+ chan->put(payload, simulatedSize);
+}
+
+void send(MailboxPtr chan, void* payload, double simulatedSize, double timeout) // deprecated
+{
+ chan->put(payload, simulatedSize, timeout);
+}
+
+CommPtr isend(MailboxPtr chan, void* payload, double simulatedSize) // deprecated
+{
+ return chan->put_async(payload, simulatedSize);