![]() |
Bitcoin Core 30.99.0
P2P Digital Currency
|
#include <proxy-io.h>
Public Types | |
| using | CallContext = CallContext_ |
Public Member Functions | |
| ServerInvokeContext (ProxyServer &proxy_server, CallContext &call_context, int req) | |
Public Attributes | |
| ProxyServer & | proxy_server |
| CallContext & | call_context |
| int | req |
| Lock * | cancel_lock {nullptr} |
For IPC methods that execute asynchronously, not on the event-loop thread: lock preventing the event-loop thread from freeing the params or results structs if the request is canceled while the worker thread is reading params (call_context.getParams()) or writing results (call_context.getResults()). More... | |
| bool | request_canceled {false} |
| For IPC methods that execute asynchronously, not on the event-loop thread, this is set to true if the IPC call was canceled by the client or canceled by a disconnection. More... | |
Public Attributes inherited from mp::InvokeContext | |
| Connection & | connection |
Definition at line 44 of file proxy-io.h.
| using mp::ServerInvokeContext< ProxyServer, CallContext_ >::CallContext = CallContext_ |
Definition at line 46 of file proxy-io.h.
|
inline |
Definition at line 65 of file proxy-io.h.
| CallContext& mp::ServerInvokeContext< ProxyServer, CallContext_ >::call_context |
Definition at line 49 of file proxy-io.h.
| Lock* mp::ServerInvokeContext< ProxyServer, CallContext_ >::cancel_lock {nullptr} |
For IPC methods that execute asynchronously, not on the event-loop thread: lock preventing the event-loop thread from freeing the params or results structs if the request is canceled while the worker thread is reading params (call_context.getParams()) or writing results (call_context.getResults()).
Definition at line 56 of file proxy-io.h.
| ProxyServer& mp::ServerInvokeContext< ProxyServer, CallContext_ >::proxy_server |
Definition at line 48 of file proxy-io.h.
| int mp::ServerInvokeContext< ProxyServer, CallContext_ >::req |
Definition at line 50 of file proxy-io.h.
| bool mp::ServerInvokeContext< ProxyServer, CallContext_ >::request_canceled {false} |
For IPC methods that execute asynchronously, not on the event-loop thread, this is set to true if the IPC call was canceled by the client or canceled by a disconnection.
If the call runs on the event-loop thread, it can't be canceled. This should be accessed with cancel_lock held if it is not null, since in the asynchronous case it is accessed from multiple threads.
Definition at line 63 of file proxy-io.h.