GRPC C++  1.39.1
Data Structures | Typedefs | Functions
iomgr_internal.h File Reference
#include <grpc/support/port_platform.h>
#include <stdbool.h>
#include "src/core/lib/iomgr/iomgr.h"

Go to the source code of this file.

Data Structures

struct  grpc_iomgr_object
 
struct  grpc_iomgr_platform_vtable
 

Typedefs

typedef struct grpc_iomgr_object grpc_iomgr_object
 
typedef struct grpc_iomgr_platform_vtable grpc_iomgr_platform_vtable
 

Functions

void grpc_iomgr_register_object (grpc_iomgr_object *obj, const char *name)
 
void grpc_iomgr_unregister_object (grpc_iomgr_object *obj)
 
void grpc_determine_iomgr_platform ()
 
void grpc_set_iomgr_platform_vtable (grpc_iomgr_platform_vtable *vtable)
 
void grpc_set_default_iomgr_platform ()
 
void grpc_iomgr_platform_init (void)
 
void grpc_iomgr_platform_flush (void)
 flush any globally queued work from iomgr More...
 
void grpc_iomgr_platform_shutdown (void)
 tear down all platform specific global iomgr structures More...
 
void grpc_iomgr_platform_shutdown_background_closure (void)
 shut down all the closures registered in the background poller More...
 
bool grpc_iomgr_platform_is_any_background_poller_thread (void)
 return true if the caller is a worker thread for any background poller More...
 
bool grpc_iomgr_platform_add_closure_to_background_poller (grpc_closure *closure, grpc_error_handle error)
 Return true if the closure is registered into the background poller. More...
 
bool grpc_iomgr_abort_on_leaks (void)
 

Typedef Documentation

◆ grpc_iomgr_object

◆ grpc_iomgr_platform_vtable

Function Documentation

◆ grpc_determine_iomgr_platform()

void grpc_determine_iomgr_platform ( )

◆ grpc_iomgr_abort_on_leaks()

bool grpc_iomgr_abort_on_leaks ( void  )

◆ grpc_iomgr_platform_add_closure_to_background_poller()

bool grpc_iomgr_platform_add_closure_to_background_poller ( grpc_closure closure,
grpc_error_handle  error 
)

Return 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.

◆ grpc_iomgr_platform_flush()

void grpc_iomgr_platform_flush ( void  )

flush any globally queued work from iomgr

◆ grpc_iomgr_platform_init()

void grpc_iomgr_platform_init ( void  )

◆ grpc_iomgr_platform_is_any_background_poller_thread()

bool grpc_iomgr_platform_is_any_background_poller_thread ( void  )

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

◆ grpc_iomgr_platform_shutdown()

void grpc_iomgr_platform_shutdown ( void  )

tear down all platform specific global iomgr structures

◆ grpc_iomgr_platform_shutdown_background_closure()

void grpc_iomgr_platform_shutdown_background_closure ( void  )

shut down all the closures registered in the background poller

◆ grpc_iomgr_register_object()

void grpc_iomgr_register_object ( grpc_iomgr_object obj,
const char *  name 
)

◆ grpc_iomgr_unregister_object()

void grpc_iomgr_unregister_object ( grpc_iomgr_object obj)

◆ grpc_set_default_iomgr_platform()

void grpc_set_default_iomgr_platform ( )

◆ grpc_set_iomgr_platform_vtable()

void grpc_set_iomgr_platform_vtable ( grpc_iomgr_platform_vtable vtable)