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 references for parameters of type std::function.
[simgrid.git]
/
src
/
kernel
/
context
/
ContextRaw.hpp
diff --git
a/src/kernel/context/ContextRaw.hpp
b/src/kernel/context/ContextRaw.hpp
index
2810c17
..
0749180
100644
(file)
--- a/
src/kernel/context/ContextRaw.hpp
+++ b/
src/kernel/context/ContextRaw.hpp
@@
-26,7
+26,7
@@
namespace context {
*/
class RawContext : public SwappedContext {
public:
*/
class RawContext : public SwappedContext {
public:
- RawContext(std::function<void()> code, smx_actor_t actor, SwappedContextFactory* factory);
+ RawContext(std::function<void()>
&&
code, smx_actor_t actor, SwappedContextFactory* factory);
void swap_into(SwappedContext* to) override;
void swap_into(SwappedContext* to) override;
@@
-39,7
+39,7
@@
private:
class RawContextFactory : public SwappedContextFactory {
public:
class RawContextFactory : public SwappedContextFactory {
public:
- Context* create_context(std::function<void()> code, smx_actor_t actor) override;
+ Context* create_context(std::function<void()>
&&
code, smx_actor_t actor) override;
};
}}} // namespace
};
}}} // namespace