Bitcoin Core 29.99.0
P2P Digital Currency
Public Attributes | List of all members
mp::ThreadContext Struct Reference

#include <proxy-io.h>

Public Attributes

std::string thread_name
 Identifying string for debug. More...
 
std::unique_ptr< Waiterwaiter = nullptr
 Waiter object used to allow client threads blocked waiting for a server response to execute callbacks made from the client's corresponding server thread. More...
 
ConnThreads callback_threads
 When client is making a request to a server, this is the callbackThread argument it passes in the request, used by the server in case it needs to make callbacks into the client that need to execute while the client is waiting. More...
 
ConnThreads request_threads
 When client is making a request to a server, this is the thread argument it passes in the request, used to control which thread on server will be responsible for executing it. More...
 
bool loop_thread = false
 Whether this thread is a capnp event loop thread. More...
 

Detailed Description

Definition at line 528 of file proxy-io.h.

Member Data Documentation

◆ callback_threads

ConnThreads mp::ThreadContext::callback_threads

When client is making a request to a server, this is the callbackThread argument it passes in the request, used by the server in case it needs to make callbacks into the client that need to execute while the client is waiting.

This will be set to a local thread object.

Definition at line 542 of file proxy-io.h.

◆ loop_thread

bool mp::ThreadContext::loop_thread = false

Whether this thread is a capnp event loop thread.

Not really used except to assert false if there's an attempt to execute a blocking operation which could deadlock the thread.

Definition at line 556 of file proxy-io.h.

◆ request_threads

ConnThreads mp::ThreadContext::request_threads

When client is making a request to a server, this is the thread argument it passes in the request, used to control which thread on server will be responsible for executing it.

If client call is being made from a local thread, this will be a remote thread object returned by makeThread. If a client call is being made from a thread currently handling a server request, this will be set to the callbackThread request thread argument passed in that request.

Definition at line 551 of file proxy-io.h.

◆ thread_name

std::string mp::ThreadContext::thread_name

Identifying string for debug.

Definition at line 531 of file proxy-io.h.

◆ waiter

std::unique_ptr<Waiter> mp::ThreadContext::waiter = nullptr

Waiter object used to allow client threads blocked waiting for a server response to execute callbacks made from the client's corresponding server thread.

Definition at line 536 of file proxy-io.h.


The documentation for this struct was generated from the following file: