Macros | Functions
iomgr/timer_heap.cc File Reference
#include <grpc/support/port_platform.h>
#include "src/core/lib/iomgr/timer_heap.h"
#include <string.h>
#include <grpc/support/alloc.h>
#include "src/core/lib/gpr/useful.h"
#include "src/core/lib/iomgr/port.h"
Include dependency graph for iomgr/timer_heap.cc:

Go to the source code of this file.

Macros

#define SHRINK_FULLNESS_FACTOR   2
 
#define SHRINK_MIN_ELEMS   8
 

Functions

static void adjust_downwards (grpc_timer **first, uint32_t i, uint32_t length, grpc_timer *t)
 
static void adjust_upwards (grpc_timer **first, uint32_t i, grpc_timer *t)
 
bool grpc_timer_heap_add (grpc_timer_heap *heap, grpc_timer *timer)
 
void grpc_timer_heap_destroy (grpc_timer_heap *heap)
 
void grpc_timer_heap_init (grpc_timer_heap *heap)
 
bool grpc_timer_heap_is_empty (grpc_timer_heap *heap)
 
void grpc_timer_heap_pop (grpc_timer_heap *heap)
 
void grpc_timer_heap_remove (grpc_timer_heap *heap, grpc_timer *timer)
 
grpc_timergrpc_timer_heap_top (grpc_timer_heap *heap)
 
static void maybe_shrink (grpc_timer_heap *heap)
 
static void note_changed_priority (grpc_timer_heap *heap, grpc_timer *timer)
 

Macro Definition Documentation

◆ SHRINK_FULLNESS_FACTOR

#define SHRINK_FULLNESS_FACTOR   2

Definition at line 70 of file iomgr/timer_heap.cc.

◆ SHRINK_MIN_ELEMS

#define SHRINK_MIN_ELEMS   8

Definition at line 69 of file iomgr/timer_heap.cc.

Function Documentation

◆ adjust_downwards()

static void adjust_downwards ( grpc_timer **  first,
uint32_t  i,
uint32_t  length,
grpc_timer t 
)
static

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

◆ adjust_upwards()

static void adjust_upwards ( grpc_timer **  first,
uint32_t  i,
grpc_timer t 
)
static

Definition at line 35 of file iomgr/timer_heap.cc.

◆ grpc_timer_heap_add()

bool grpc_timer_heap_add ( grpc_timer_heap heap,
grpc_timer timer 
)

Definition at line 97 of file iomgr/timer_heap.cc.

◆ grpc_timer_heap_destroy()

void grpc_timer_heap_destroy ( grpc_timer_heap heap)

Definition at line 95 of file iomgr/timer_heap.cc.

◆ grpc_timer_heap_init()

void grpc_timer_heap_init ( grpc_timer_heap heap)

Definition at line 91 of file iomgr/timer_heap.cc.

◆ grpc_timer_heap_is_empty()

bool grpc_timer_heap_is_empty ( grpc_timer_heap heap)

Definition at line 124 of file iomgr/timer_heap.cc.

◆ grpc_timer_heap_pop()

void grpc_timer_heap_pop ( grpc_timer_heap heap)

Definition at line 132 of file iomgr/timer_heap.cc.

◆ grpc_timer_heap_remove()

void grpc_timer_heap_remove ( grpc_timer_heap heap,
grpc_timer timer 
)

Definition at line 110 of file iomgr/timer_heap.cc.

◆ grpc_timer_heap_top()

grpc_timer* grpc_timer_heap_top ( grpc_timer_heap heap)

Definition at line 128 of file iomgr/timer_heap.cc.

◆ maybe_shrink()

static void maybe_shrink ( grpc_timer_heap heap)
static

Definition at line 72 of file iomgr/timer_heap.cc.

◆ note_changed_priority()

static void note_changed_priority ( grpc_timer_heap heap,
grpc_timer timer 
)
static

Definition at line 81 of file iomgr/timer_heap.cc.



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