GRPC Core  0.11.0.0
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Macros | Functions
alarm_heap.c File Reference
#include "src/core/iomgr/alarm_heap.h"
#include <string.h>
#include <grpc/support/alloc.h>
#include <grpc/support/useful.h>

Macros

#define SHRINK_MIN_ELEMS   8
 
#define SHRINK_FULLNESS_FACTOR   2
 

Functions

void grpc_alarm_heap_init (grpc_alarm_heap *heap)
 
void grpc_alarm_heap_destroy (grpc_alarm_heap *heap)
 
int grpc_alarm_heap_add (grpc_alarm_heap *heap, grpc_alarm *alarm)
 
void grpc_alarm_heap_remove (grpc_alarm_heap *heap, grpc_alarm *alarm)
 
int grpc_alarm_heap_is_empty (grpc_alarm_heap *heap)
 
grpc_alarmgrpc_alarm_heap_top (grpc_alarm_heap *heap)
 
void grpc_alarm_heap_pop (grpc_alarm_heap *heap)
 

Macro Definition Documentation

#define SHRINK_FULLNESS_FACTOR   2
#define SHRINK_MIN_ELEMS   8

Function Documentation

int grpc_alarm_heap_add ( grpc_alarm_heap heap,
grpc_alarm alarm 
)
void grpc_alarm_heap_destroy ( grpc_alarm_heap heap)
void grpc_alarm_heap_init ( grpc_alarm_heap heap)
int grpc_alarm_heap_is_empty ( grpc_alarm_heap heap)
void grpc_alarm_heap_pop ( grpc_alarm_heap heap)
void grpc_alarm_heap_remove ( grpc_alarm_heap heap,
grpc_alarm alarm 
)
grpc_alarm* grpc_alarm_heap_top ( grpc_alarm_heap heap)