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
this name is not explicit, thus this type is not helping. Thus removing
[simgrid.git]
/
include
/
simgrid
/
s4u
/
Actor.hpp
diff --git
a/include/simgrid/s4u/Actor.hpp
b/include/simgrid/s4u/Actor.hpp
index
026b326
..
6ee97c4
100644
(file)
--- a/
include/simgrid/s4u/Actor.hpp
+++ b/
include/simgrid/s4u/Actor.hpp
@@
-131,8
+131,6
@@
class XBT_PUBLIC Actor : public simgrid::xbt::Extendable<Actor> {
explicit Actor(smx_actor_t pimpl) : pimpl_(pimpl) {}
explicit Actor(smx_actor_t pimpl) : pimpl_(pimpl) {}
- typedef std::function<void()> callback_type;
-
public:
// ***** No copy *****
public:
// ***** No copy *****
@@
-168,7
+166,7
@@
public:
*
* If the actor is restarted, the actor has a fresh copy of the function.
*/
*
* If the actor is restarted, the actor has a fresh copy of the function.
*/
- static ActorPtr create(std::string name, s4u::Host* host,
callback_type
code);
+ static ActorPtr create(std::string name, s4u::Host* host,
std::function<void()>
code);
/** Create an actor from a std::function
*
/** Create an actor from a std::function
*
@@
-176,7
+174,7
@@
public:
*/
template <class F> static ActorPtr create(std::string name, s4u::Host* host, F code)
{
*/
template <class F> static ActorPtr create(std::string name, s4u::Host* host, F code)
{
- return create(name, host,
callback_type
(std::move(code)));
+ return create(name, host,
std::function<void()>
(std::move(code)));
}
/** Create an actor using a callable thing and its arguments.
}
/** Create an actor using a callable thing and its arguments.