|
|
@ -37,6 +37,8 @@ typedef struct grpc_iomgr_platform_vtable { |
|
|
|
void (*shutdown)(void); |
|
|
|
void (*shutdown)(void); |
|
|
|
void (*shutdown_background_closure)(void); |
|
|
|
void (*shutdown_background_closure)(void); |
|
|
|
bool (*is_any_background_poller_thread)(void); |
|
|
|
bool (*is_any_background_poller_thread)(void); |
|
|
|
|
|
|
|
bool (*add_closure_to_background_poller)(grpc_closure* closure, |
|
|
|
|
|
|
|
grpc_error* error); |
|
|
|
} grpc_iomgr_platform_vtable; |
|
|
|
} grpc_iomgr_platform_vtable; |
|
|
|
|
|
|
|
|
|
|
|
void grpc_iomgr_register_object(grpc_iomgr_object* obj, const char* name); |
|
|
|
void grpc_iomgr_register_object(grpc_iomgr_object* obj, const char* name); |
|
|
@ -57,9 +59,15 @@ void grpc_iomgr_platform_shutdown(void); |
|
|
|
/** shut down all the closures registered in the background poller */ |
|
|
|
/** shut down all the closures registered in the background poller */ |
|
|
|
void grpc_iomgr_platform_shutdown_background_closure(void); |
|
|
|
void grpc_iomgr_platform_shutdown_background_closure(void); |
|
|
|
|
|
|
|
|
|
|
|
/** return true is the caller is a worker thread for any background poller */ |
|
|
|
/** return true if the caller is a worker thread for any background poller */ |
|
|
|
bool grpc_iomgr_platform_is_any_background_poller_thread(void); |
|
|
|
bool grpc_iomgr_platform_is_any_background_poller_thread(void); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** 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. */ |
|
|
|
|
|
|
|
bool grpc_iomgr_platform_add_closure_to_background_poller(grpc_closure* closure, |
|
|
|
|
|
|
|
grpc_error* error); |
|
|
|
|
|
|
|
|
|
|
|
bool grpc_iomgr_abort_on_leaks(void); |
|
|
|
bool grpc_iomgr_abort_on_leaks(void); |
|
|
|
|
|
|
|
|
|
|
|
#endif /* GRPC_CORE_LIB_IOMGR_IOMGR_INTERNAL_H */ |
|
|
|
#endif /* GRPC_CORE_LIB_IOMGR_IOMGR_INTERNAL_H */ |
|
|
|