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
Use std::function for Comm callbacks.
[simgrid.git]
/
src
/
kernel
/
activity
/
MailboxImpl.cpp
diff --git
a/src/kernel/activity/MailboxImpl.cpp
b/src/kernel/activity/MailboxImpl.cpp
index
7af7743
..
cafb036
100644
(file)
--- a/
src/kernel/activity/MailboxImpl.cpp
+++ b/
src/kernel/activity/MailboxImpl.cpp
@@
-88,7
+88,7
@@
void MailboxImpl::clear()
}
}
}
}
-CommImplPtr MailboxImpl::iprobe(int type,
bool (*match_fun)(void*, void*, CommImpl*)
, void* data)
+CommImplPtr MailboxImpl::iprobe(int type,
const std::function<bool(void*, void*, CommImpl*)>& match_fun
, void* data)
{
XBT_DEBUG("iprobe from %p %p", this, &comm_queue_);
{
XBT_DEBUG("iprobe from %p %p", this, &comm_queue_);
@@
-123,7
+123,8
@@
CommImplPtr MailboxImpl::iprobe(int type, bool (*match_fun)(void*, void*, CommIm
* @param remove_matching whether or not to clean the found object from the queue
* @return The communication activity if found, nullptr otherwise
*/
* @param remove_matching whether or not to clean the found object from the queue
* @return The communication activity if found, nullptr otherwise
*/
-CommImplPtr MailboxImpl::find_matching_comm(CommImplType type, bool (*match_fun)(void*, void*, CommImpl*),
+CommImplPtr MailboxImpl::find_matching_comm(CommImplType type,
+ const std::function<bool(void*, void*, CommImpl*)>& match_fun,
void* this_user_data, const CommImplPtr& my_synchro, bool done,
bool remove_matching)
{
void* this_user_data, const CommImplPtr& my_synchro, bool done,
bool remove_matching)
{