A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Update python/clusters-multicpu to the new API.
[simgrid.git]
/
include
/
simgrid
/
mailbox.h
diff --git
a/include/simgrid/mailbox.h
b/include/simgrid/mailbox.h
index 8bbf519937f7d75983ad4e3c469d41df93d40a51..557f13da5f1ffd152e84760a3b3412f339342158 100644
(file)
--- a/
include/simgrid/mailbox.h
+++ b/
include/simgrid/mailbox.h
@@
-1,4
+1,4
@@
-/* Copyright (c) 2018-202
0
. The SimGrid Team. All rights reserved. */
+/* Copyright (c) 2018-202
3
. 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. */
/* 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. */
@@
-7,18
+7,20
@@
#define INCLUDE_SIMGRID_MAILBOX_H_
#include <simgrid/forward.h>
#define INCLUDE_SIMGRID_MAILBOX_H_
#include <simgrid/forward.h>
-#include <xbt/base.h>
/* C interface */
SG_BEGIN_DECL
XBT_PUBLIC sg_mailbox_t sg_mailbox_by_name(const char* alias);
/* C interface */
SG_BEGIN_DECL
XBT_PUBLIC sg_mailbox_t sg_mailbox_by_name(const char* alias);
-XBT_PUBLIC const char* sg_mailbox_get_name(sg_mailbox_t mailbox);
+XBT_PUBLIC const char* sg_mailbox_get_name(
const_
sg_mailbox_t mailbox);
XBT_PUBLIC void sg_mailbox_set_receiver(const char* alias);
XBT_PUBLIC int sg_mailbox_listen(const char* alias);
XBT_PUBLIC void sg_mailbox_set_receiver(const char* alias);
XBT_PUBLIC int sg_mailbox_listen(const char* alias);
-XBT_PUBLIC
void sg_mailbox_pu
t(sg_mailbox_t mailbox, void* payload, long simulated_size_in_bytes);
+XBT_PUBLIC
sg_comm_t sg_mailbox_put_ini
t(sg_mailbox_t mailbox, void* payload, long simulated_size_in_bytes);
XBT_PUBLIC sg_comm_t sg_mailbox_put_async(sg_mailbox_t mailbox, void* payload, long simulated_size_in_bytes);
XBT_PUBLIC sg_comm_t sg_mailbox_put_async(sg_mailbox_t mailbox, void* payload, long simulated_size_in_bytes);
+XBT_PUBLIC void sg_mailbox_put(sg_mailbox_t mailbox, void* payload, long simulated_size_in_bytes);
+
+XBT_PUBLIC sg_comm_t sg_mailbox_get_async(sg_mailbox_t mailbox, void** data);
XBT_PUBLIC void* sg_mailbox_get(sg_mailbox_t mailbox);
SG_END_DECL
XBT_PUBLIC void* sg_mailbox_get(sg_mailbox_t mailbox);
SG_END_DECL