summaryrefslogtreecommitdiffstats
path: root/mmss/gmrf.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'mmss/gmrf.cpp')
-rw-r--r--mmss/gmrf.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/mmss/gmrf.cpp b/mmss/gmrf.cpp
index d6eecbc..c71f681 100644
--- a/mmss/gmrf.cpp
+++ b/mmss/gmrf.cpp
@@ -88,11 +88,11 @@ void gmrf_schedule(gmrf_t *gmrf, gmrf_scheduled_func f, void *arg, unsigned dela
std::shared_ptr<MMSS::scheduled_t> scheduled = std::make_shared<MMSS::scheduled_t>();
- scheduled->node = node;
+ scheduled->node = std::move(node);
scheduled->f = f;
scheduled->arg = arg;
- gmrf->mmss->scheduled_queue.put(scheduled, gmrf->mmss->now+delay);
+ gmrf->mmss->scheduled_queue.put(std::move(scheduled), gmrf->mmss->now+delay);
}
gmrf_time_t gmrf_now(gmrf_t *gmrf) {