Public Types | Static Public Member Functions | Static Private Member Functions | Static Private Attributes | List of all members
grpc_core::Fork Class Reference

#include <fork.h>

Public Types

typedef void(* child_postfork_func) (void)
 

Static Public Member Functions

static void AllowExecCtx ()
 
static void AwaitThreads ()
 
static bool BlockExecCtx ()
 
static void DecExecCtxCount ()
 
static void DecThreadCount ()
 
static void Enable (bool enable)
 
static bool Enabled ()
 
static child_postfork_func GetResetChildPollingEngineFunc ()
 
static void GlobalInit ()
 
static void GlobalShutdown ()
 
static void IncExecCtxCount ()
 
static void IncThreadCount ()
 
static void SetResetChildPollingEngineFunc (child_postfork_func reset_child_polling_engine)
 

Static Private Member Functions

static void DoDecExecCtxCount ()
 
static void DoIncExecCtxCount ()
 

Static Private Attributes

static internal::ExecCtxStateexec_ctx_state_ = nullptr
 
static bool override_enabled_ = false
 
static child_postfork_func reset_child_polling_engine_ = nullptr
 
static std::atomic< boolsupport_enabled_
 
static internal::ThreadStatethread_state_ = nullptr
 

Detailed Description

Definition at line 38 of file src/core/lib/gprpp/fork.h.

Member Typedef Documentation

◆ child_postfork_func

typedef void(* grpc_core::Fork::child_postfork_func) (void)

Definition at line 40 of file src/core/lib/gprpp/fork.h.

Member Function Documentation

◆ AllowExecCtx()

void grpc_core::Fork::AllowExecCtx ( )
static

Definition at line 213 of file fork.cc.

◆ AwaitThreads()

void grpc_core::Fork::AwaitThreads ( )
static

Definition at line 230 of file fork.cc.

◆ BlockExecCtx()

bool grpc_core::Fork::BlockExecCtx ( )
static

Definition at line 206 of file fork.cc.

◆ DecExecCtxCount()

static void grpc_core::Fork::DecExecCtxCount ( )
inlinestatic

Definition at line 57 of file src/core/lib/gprpp/fork.h.

◆ DecThreadCount()

void grpc_core::Fork::DecThreadCount ( )
static

Definition at line 225 of file fork.cc.

◆ DoDecExecCtxCount()

void grpc_core::Fork::DoDecExecCtxCount ( )
staticprivate

Definition at line 196 of file fork.cc.

◆ DoIncExecCtxCount()

void grpc_core::Fork::DoIncExecCtxCount ( )
staticprivate

Definition at line 194 of file fork.cc.

◆ Enable()

void grpc_core::Fork::Enable ( bool  enable)
static

Definition at line 189 of file fork.cc.

◆ Enabled()

bool grpc_core::Fork::Enabled ( )
static

Definition at line 184 of file fork.cc.

◆ GetResetChildPollingEngineFunc()

Fork::child_postfork_func grpc_core::Fork::GetResetChildPollingEngineFunc ( )
static

Definition at line 202 of file fork.cc.

◆ GlobalInit()

void grpc_core::Fork::GlobalInit ( )
static

Definition at line 166 of file fork.cc.

◆ GlobalShutdown()

void grpc_core::Fork::GlobalShutdown ( )
static

Definition at line 177 of file fork.cc.

◆ IncExecCtxCount()

static void grpc_core::Fork::IncExecCtxCount ( )
inlinestatic

Definition at line 50 of file src/core/lib/gprpp/fork.h.

◆ IncThreadCount()

void grpc_core::Fork::IncThreadCount ( )
static

Definition at line 219 of file fork.cc.

◆ SetResetChildPollingEngineFunc()

void grpc_core::Fork::SetResetChildPollingEngineFunc ( Fork::child_postfork_func  reset_child_polling_engine)
static

Definition at line 198 of file fork.cc.

Member Data Documentation

◆ exec_ctx_state_

internal::ExecCtxState * grpc_core::Fork::exec_ctx_state_ = nullptr
staticprivate

Definition at line 94 of file src/core/lib/gprpp/fork.h.

◆ override_enabled_

bool grpc_core::Fork::override_enabled_ = false
staticprivate

Definition at line 97 of file src/core/lib/gprpp/fork.h.

◆ reset_child_polling_engine_

Fork::child_postfork_func grpc_core::Fork::reset_child_polling_engine_ = nullptr
staticprivate

Definition at line 98 of file src/core/lib/gprpp/fork.h.

◆ support_enabled_

std::atomic< bool > grpc_core::Fork::support_enabled_
staticprivate

Definition at line 96 of file src/core/lib/gprpp/fork.h.

◆ thread_state_

internal::ThreadState * grpc_core::Fork::thread_state_ = nullptr
staticprivate

Definition at line 95 of file src/core/lib/gprpp/fork.h.


The documentation for this class was generated from the following files:


grpc
Author(s):
autogenerated on Fri May 16 2025 03:03:36