Functions
iomgr.h File Reference
#include <grpc/support/port_platform.h>
#include <stdlib.h>
#include "src/core/lib/iomgr/closure.h"
#include "src/core/lib/iomgr/port.h"
Include dependency graph for iomgr.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

bool grpc_iomgr_add_closure_to_background_poller (grpc_closure *closure, grpc_error_handle error)
 
size_t grpc_iomgr_count_objects_for_testing ()
 
void grpc_iomgr_init ()
 
bool grpc_iomgr_is_any_background_poller_thread ()
 
bool grpc_iomgr_run_in_background ()
 
void grpc_iomgr_shutdown ()
 
void grpc_iomgr_shutdown_background_closure ()
 
void grpc_iomgr_start ()
 

Function Documentation

◆ grpc_iomgr_add_closure_to_background_poller()

bool grpc_iomgr_add_closure_to_background_poller ( grpc_closure closure,
grpc_error_handle  error 
)

Returns true if the closure is registered into the background poller. Note that the closure may or may not run yet when this function returns, and the closure should not be blocking or long-running.

Definition at line 179 of file iomgr.cc.

◆ grpc_iomgr_count_objects_for_testing()

size_t grpc_iomgr_count_objects_for_testing ( )

Definition at line 88 of file iomgr.cc.

◆ grpc_iomgr_init()

void grpc_iomgr_init ( )

Initializes the iomgr.

Definition at line 61 of file iomgr.cc.

◆ grpc_iomgr_is_any_background_poller_thread()

bool grpc_iomgr_is_any_background_poller_thread ( )

Returns true if the caller is a worker thread for any background poller.

Definition at line 175 of file iomgr.cc.

◆ grpc_iomgr_run_in_background()

bool grpc_iomgr_run_in_background ( )

◆ grpc_iomgr_shutdown()

void grpc_iomgr_shutdown ( )

Signals the intention to shutdown the iomgr. Expects to be able to flush exec_ctx.

Definition at line 97 of file iomgr.cc.

◆ grpc_iomgr_shutdown_background_closure()

void grpc_iomgr_shutdown_background_closure ( )

Signals the intention to shutdown all the closures registered in the background poller.

Definition at line 171 of file iomgr.cc.

◆ grpc_iomgr_start()

void grpc_iomgr_start ( )

Starts any background threads for iomgr.

Definition at line 77 of file iomgr.cc.



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