summaryrefslogtreecommitdiffstats
path: root/mmss/gmrf.cpp
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2013-07-27 00:33:10 +0200
committerMatthias Schiffer <mschiffer@universe-factory.net>2013-07-27 00:33:10 +0200
commitcb5d5a9397928b0c1c844f35e5cae14a52955526 (patch)
tree638d2e03cb30aa546ff4e06ef9fea6302851c7e5 /mmss/gmrf.cpp
parentf97d1e15699d281911274911f83acbdc07e1f27e (diff)
downloadgmrf-cb5d5a9397928b0c1c844f35e5cae14a52955526.tar
gmrf-cb5d5a9397928b0c1c844f35e5cae14a52955526.zip
More small optimizations
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) {