From 8c5fea68cb9e0c2e6cc2352e64c4f3f46e29c58f Mon Sep 17 00:00:00 2001 From: Kefu Chai Date: Wed, 12 Jul 2017 10:28:37 +0800 Subject: [PATCH] enforce move semantics of Request type Signed-off-by: Samuel Just Signed-off-by: Kefu Chai --- src/dmclock/sim/src/ssched/ssched_server.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/dmclock/sim/src/ssched/ssched_server.h b/src/dmclock/sim/src/ssched/ssched_server.h index fcc7055450a..5493ca2a7d1 100644 --- a/src/dmclock/sim/src/ssched/ssched_server.h +++ b/src/dmclock/sim/src/ssched/ssched_server.h @@ -104,11 +104,10 @@ namespace crimson { void add_request(R&& request, const C& client_id, const ReqParams& req_params) { - add_request(RequestRef(new R(std::move(request))), - client_id, req_params); + add_request(std::move(request), client_id, req_params); } - void add_request(RequestRef&& request, + void add_request(R&& request, const C& client_id, const ReqParams& req_params) { DataGuard g(queue_mtx);