#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"
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_thread * | g_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 |
|
static |
Definition at line 67 of file iomgr/timer_manager.cc.
void grpc_kick_poller | ( | void | ) |
Definition at line 354 of file iomgr/timer_manager.cc.
uint64_t grpc_timer_manager_get_wakeups_testonly | ( | void | ) |
Definition at line 364 of file iomgr/timer_manager.cc.
void grpc_timer_manager_init | ( | void | ) |
Definition at line 300 of file iomgr/timer_manager.cc.
void grpc_timer_manager_set_threading | ( | bool | enabled | ) |
Definition at line 346 of file iomgr/timer_manager.cc.
void grpc_timer_manager_shutdown | ( | void | ) |
Definition at line 338 of file iomgr/timer_manager.cc.
void grpc_timer_manager_tick | ( | ) |
Definition at line 96 of file iomgr/timer_manager.cc.
|
static |
Definition at line 101 of file iomgr/timer_manager.cc.
|
static |
Definition at line 290 of file iomgr/timer_manager.cc.
|
static |
Definition at line 82 of file iomgr/timer_manager.cc.
|
static |
Definition at line 315 of file iomgr/timer_manager.cc.
|
static |
Definition at line 230 of file iomgr/timer_manager.cc.
|
static |
Definition at line 281 of file iomgr/timer_manager.cc.
|
static |
Definition at line 264 of file iomgr/timer_manager.cc.
|
static |
Definition at line 146 of file iomgr/timer_manager.cc.
|
static |
Definition at line 52 of file iomgr/timer_manager.cc.
|
static |
Definition at line 46 of file iomgr/timer_manager.cc.
|
static |
Definition at line 44 of file iomgr/timer_manager.cc.
|
static |
Definition at line 56 of file iomgr/timer_manager.cc.
|
static |
Definition at line 54 of file iomgr/timer_manager.cc.
|
static |
Definition at line 40 of file iomgr/timer_manager.cc.
|
static |
Definition at line 48 of file iomgr/timer_manager.cc.
|
static |
Definition at line 42 of file iomgr/timer_manager.cc.
|
static |
Definition at line 59 of file iomgr/timer_manager.cc.
|
static |
Definition at line 61 of file iomgr/timer_manager.cc.
|
static |
Definition at line 50 of file iomgr/timer_manager.cc.
|
static |
Definition at line 63 of file iomgr/timer_manager.cc.
grpc_core::TraceFlag grpc_timer_check_trace |