OSDN Git Service

[Orc][RPC] Lock the pending results data structure when installing new result
authorLang Hames <lhames@gmail.com>
Sun, 8 Jan 2017 20:09:35 +0000 (20:09 +0000)
committerLang Hames <lhames@gmail.com>
Sun, 8 Jan 2017 20:09:35 +0000 (20:09 +0000)
commitc103185b6b12334cb06afbcd028f5777f9a4299c
tree187f20ec07caa4a9d3029cd5b0e9aa831ca77907
parent8204fd73206682998c8d78f7e4c0e351f1b79ca4
[Orc][RPC] Lock the pending results data structure when installing new result
handlers, make abandonPendingResults public API.

This should make installing asynchronous result handlers thread safe.

The abandonPendingResults method is made public so that clients can disconnect
from a remote even if they have asynchronous handlers awaing results from that
remote. The asynchronous handlers will all receive "abandoned result" errors as
their argument.

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