]> granicus.if.org Git - llvm/commit
[ORC] Make sure RPC channel-send is called in blocking calls and responses.
authorLang Hames <lhames@gmail.com>
Fri, 6 Sep 2019 19:21:59 +0000 (19:21 +0000)
committerLang Hames <lhames@gmail.com>
Fri, 6 Sep 2019 19:21:59 +0000 (19:21 +0000)
commitaf46d1e1e6c2c69ebde7c41b9566e47e4bd47e05
tree791bada05f67a392bdb545d822ae803cf0a5d491
parentafaf30acaa07d6e1041ee5e057497d64d7bf11dc
[ORC] Make sure RPC channel-send is called in blocking calls and responses.

ORC-RPC batches calls by default, and the channel's send method must be called
to transfer any buffered calls to the remote. The call to send was missing on
responses and blocking calls in the SingleThreadedRPCEndpoint. This patch adds
the necessary calls and modifies the RPC unit test to check for them.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@371245 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/ExecutionEngine/Orc/RPCUtils.h
unittests/ExecutionEngine/Orc/QueueChannel.h
unittests/ExecutionEngine/Orc/RPCUtilsTest.cpp