Classes | Functions | Variables
iomgr/timer_manager.cc File Reference
#include <grpc/support/port_platform.h>
#include "src/core/lib/iomgr/timer_manager.h"
#include <inttypes.h>
#include <grpc/support/alloc.h>
#include <grpc/support/log.h>
#include "src/core/lib/debug/trace.h"
#include "src/core/lib/gprpp/thd.h"
#include "src/core/lib/iomgr/timer.h"
Include dependency graph for iomgr/timer_manager.cc:

Go to the source code of this file.

Classes

struct  completed_thread
 

Functions

static void gc_completed_threads (void)
 
void grpc_kick_poller (void)
 
uint64_t grpc_timer_manager_get_wakeups_testonly (void)
 
void grpc_timer_manager_init (void)
 
void grpc_timer_manager_set_threading (bool enabled)
 
void grpc_timer_manager_shutdown (void)
 
void grpc_timer_manager_tick ()
 
static void run_some_timers ()
 
static void start_threads (void)
 
static void start_timer_thread_and_unlock (void)
 
static void stop_threads (void)
 
static void timer_main_loop ()
 
static void timer_thread (void *completed_thread_ptr)
 
static void timer_thread_cleanup (completed_thread *ct)
 
static bool wait_until (grpc_core::Timestamp next)
 

Variables

static completed_threadg_completed_threads
 
static gpr_cv g_cv_shutdown
 
static gpr_cv g_cv_wait
 
static bool g_has_timed_waiter
 
static bool g_kicked
 
static gpr_mu g_mu
 
static int g_thread_count
 
static bool g_threaded
 
static grpc_core::Timestamp g_timed_waiter_deadline
 
static uint64_t g_timed_waiter_generation
 
static int g_waiter_count
 
static uint64_t g_wakeups
 
grpc_core::TraceFlag grpc_timer_check_trace
 

Function Documentation

◆ gc_completed_threads()

static void gc_completed_threads ( void  )
static

Definition at line 67 of file iomgr/timer_manager.cc.

◆ grpc_kick_poller()

void grpc_kick_poller ( void  )

Definition at line 354 of file iomgr/timer_manager.cc.

◆ grpc_timer_manager_get_wakeups_testonly()

uint64_t grpc_timer_manager_get_wakeups_testonly ( void  )

Definition at line 364 of file iomgr/timer_manager.cc.

◆ grpc_timer_manager_init()

void grpc_timer_manager_init ( void  )

Definition at line 300 of file iomgr/timer_manager.cc.

◆ grpc_timer_manager_set_threading()

void grpc_timer_manager_set_threading ( bool  enabled)

Definition at line 346 of file iomgr/timer_manager.cc.

◆ grpc_timer_manager_shutdown()

void grpc_timer_manager_shutdown ( void  )

Definition at line 338 of file iomgr/timer_manager.cc.

◆ grpc_timer_manager_tick()

void grpc_timer_manager_tick ( )

Definition at line 96 of file iomgr/timer_manager.cc.

◆ run_some_timers()

static void run_some_timers ( )
static

Definition at line 101 of file iomgr/timer_manager.cc.

◆ start_threads()

static void start_threads ( void  )
static

Definition at line 290 of file iomgr/timer_manager.cc.

◆ start_timer_thread_and_unlock()

static void start_timer_thread_and_unlock ( void  )
static

Definition at line 82 of file iomgr/timer_manager.cc.

◆ stop_threads()

static void stop_threads ( void  )
static

Definition at line 315 of file iomgr/timer_manager.cc.

◆ timer_main_loop()

static void timer_main_loop ( )
static

Definition at line 230 of file iomgr/timer_manager.cc.

◆ timer_thread()

static void timer_thread ( void *  completed_thread_ptr)
static

Definition at line 281 of file iomgr/timer_manager.cc.

◆ timer_thread_cleanup()

static void timer_thread_cleanup ( completed_thread ct)
static

Definition at line 264 of file iomgr/timer_manager.cc.

◆ wait_until()

static bool wait_until ( grpc_core::Timestamp  next)
static

Definition at line 146 of file iomgr/timer_manager.cc.

Variable Documentation

◆ g_completed_threads

completed_thread* g_completed_threads
static

Definition at line 52 of file iomgr/timer_manager.cc.

◆ g_cv_shutdown

gpr_cv g_cv_shutdown
static

Definition at line 46 of file iomgr/timer_manager.cc.

◆ g_cv_wait

gpr_cv g_cv_wait
static

Definition at line 44 of file iomgr/timer_manager.cc.

◆ g_has_timed_waiter

bool g_has_timed_waiter
static

Definition at line 56 of file iomgr/timer_manager.cc.

◆ g_kicked

bool g_kicked
static

Definition at line 54 of file iomgr/timer_manager.cc.

◆ g_mu

gpr_mu g_mu
static

Definition at line 40 of file iomgr/timer_manager.cc.

◆ g_thread_count

int g_thread_count
static

Definition at line 48 of file iomgr/timer_manager.cc.

◆ g_threaded

bool g_threaded
static

Definition at line 42 of file iomgr/timer_manager.cc.

◆ g_timed_waiter_deadline

grpc_core::Timestamp g_timed_waiter_deadline
static

Definition at line 59 of file iomgr/timer_manager.cc.

◆ g_timed_waiter_generation

uint64_t g_timed_waiter_generation
static

Definition at line 61 of file iomgr/timer_manager.cc.

◆ g_waiter_count

int g_waiter_count
static

Definition at line 50 of file iomgr/timer_manager.cc.

◆ g_wakeups

uint64_t g_wakeups
static

Definition at line 63 of file iomgr/timer_manager.cc.

◆ grpc_timer_check_trace

grpc_core::TraceFlag grpc_timer_check_trace


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