From 95ff3ea51258aa9ad4c9fd28e2f3ac1b9b02fb8c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cezary=20Skrzy=C5=84ski?= Date: Tue, 22 Dec 2020 20:24:18 +0100 Subject: [PATCH] #1186: backport: add explicit types to templates Cherry-pick 8f27e08 from #908. --- tests/perf/ping_pong.cc | 10 +++++----- tests/unit/pool/test_pool_message_sizes.cc | 4 ++-- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/tests/perf/ping_pong.cc b/tests/perf/ping_pong.cc index 1f0d4efd28..acd4a6f548 100644 --- a/tests/perf/ping_pong.cc +++ b/tests/perf/ping_pong.cc @@ -105,7 +105,7 @@ static void finishedPing(FinishedPingMsg* msg) { if (num_bytes != max_bytes) { auto pmsg = makeSharedMessage>(); - theMsg()->sendMsg, pingPong>( + theMsg()->sendMsg, pingPong>( pong_node, pmsg ); } @@ -133,7 +133,7 @@ static void pingPong(PingMsg* in_msg) { if (cnt >= num_pings) { auto msg = makeSharedMessage>(num_bytes); - theMsg()->sendMsg, finishedPing>( + theMsg()->sendMsg, finishedPing>( 0, msg ); } else { @@ -141,12 +141,12 @@ static void pingPong(PingMsg* in_msg) { theContext()->getNode() == ping_node ? pong_node : ping_node; #if REUSE_MESSAGE_PING_PONG // @todo: fix this memory allocation problem - theMsg()->sendMsg, pingPong>( + theMsg()->sendMsg, pingPong>( next, in_msg, [=]{ /*delete in_msg;*/ } ); #else auto m = makeSharedMessage>(cnt + 1); - theMsg()->sendMsg, pingPong>(next, m); + theMsg()->sendMsg, pingPong>(next, m); #endif } } @@ -169,7 +169,7 @@ int main(int argc, char** argv) { if (my_node == 0) { auto m = makeSharedMessage>(); - theMsg()->sendMsg, pingPong>(pong_node, m); + theMsg()->sendMsg, pingPong>(pong_node, m); } while (!rt->isTerminated()) { diff --git a/tests/unit/pool/test_pool_message_sizes.cc b/tests/unit/pool/test_pool_message_sizes.cc index 69bc114d02..d0746f419b 100644 --- a/tests/unit/pool/test_pool_message_sizes.cc +++ b/tests/unit/pool/test_pool_message_sizes.cc @@ -102,12 +102,12 @@ void TestPoolMessageSizes::testPoolFun(TestMsg* prev_msg) { if (count < max_test_count) { auto msg = makeSharedMessage>(); - theMsg()->sendMsg, testPoolFun>( + theMsg()->sendMsg, testPoolFun>( next, msg ); } else { auto msg = makeSharedMessage>(); - theMsg()->sendMsg, testPoolFun>( + theMsg()->sendMsg, testPoolFun>( next, msg ); count = 0;