iomgr_internal.h
Go to the documentation of this file.
1 /*
2  *
3  * Copyright 2015 gRPC authors.
4  *
5  * Licensed under the Apache License, Version 2.0 (the "License");
6  * you may not use this file except in compliance with the License.
7  * You may obtain a copy of the License at
8  *
9  * http://www.apache.org/licenses/LICENSE-2.0
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  *
17  */
18 
19 #ifndef GRPC_CORE_LIB_IOMGR_IOMGR_INTERNAL_H
20 #define GRPC_CORE_LIB_IOMGR_IOMGR_INTERNAL_H
21 
23 
24 #include <stdbool.h>
25 
28 
29 typedef struct grpc_iomgr_object {
30  char* name;
34 
36  void (*init)(void);
37  void (*flush)(void);
38  void (*shutdown)(void);
44 
47 
49 
51 
53 
54 void grpc_iomgr_platform_init(void);
56 void grpc_iomgr_platform_flush(void);
59 
62 
65 
71 
72 bool grpc_iomgr_abort_on_leaks(void);
73 
74 #endif /* GRPC_CORE_LIB_IOMGR_IOMGR_INTERNAL_H */
obj
OPENSSL_EXPORT const ASN1_OBJECT * obj
Definition: x509.h:1671
vtable
static const grpc_transport_vtable vtable
Definition: binder_transport.cc:680
grpc_iomgr_platform_vtable
struct grpc_iomgr_platform_vtable grpc_iomgr_platform_vtable
bool
bool
Definition: setup_once.h:312
grpc_iomgr_abort_on_leaks
bool grpc_iomgr_abort_on_leaks(void)
Definition: iomgr.cc:202
error
grpc_error_handle error
Definition: retry_filter.cc:499
grpc_iomgr_object
struct grpc_iomgr_object grpc_iomgr_object
closure.h
grpc_iomgr_platform_vtable::flush
void(* flush)(void)
Definition: iomgr_internal.h:37
setup.name
name
Definition: setup.py:542
grpc_set_default_iomgr_platform
void grpc_set_default_iomgr_platform()
Definition: memory_quota_test.cc:167
grpc_iomgr_platform_shutdown_background_closure
void grpc_iomgr_platform_shutdown_background_closure(void)
Definition: iomgr_internal.cc:41
grpc_iomgr_object
Definition: iomgr_internal.h:29
grpc_iomgr_object::name
char * name
Definition: iomgr_internal.h:30
grpc_iomgr_platform_flush
void grpc_iomgr_platform_flush(void)
Definition: iomgr_internal.cc:37
grpc_iomgr_platform_add_closure_to_background_poller
bool grpc_iomgr_platform_add_closure_to_background_poller(grpc_closure *closure, grpc_error_handle error)
Definition: iomgr_internal.cc:49
grpc_iomgr_platform_shutdown
void grpc_iomgr_platform_shutdown(void)
Definition: iomgr_internal.cc:39
closure
grpc_closure closure
Definition: src/core/lib/surface/server.cc:466
grpc_set_iomgr_platform_vtable
void grpc_set_iomgr_platform_vtable(grpc_iomgr_platform_vtable *vtable)
Definition: iomgr_internal.cc:31
error.h
grpc_have_determined_iomgr_platform
bool grpc_have_determined_iomgr_platform()
Definition: iomgr_internal.cc:27
grpc_iomgr_unregister_object
void grpc_iomgr_unregister_object(grpc_iomgr_object *obj)
Definition: iomgr.cc:193
grpc_iomgr_platform_vtable::init
void(* init)(void)
Definition: iomgr_internal.h:36
grpc_iomgr_object::prev
struct grpc_iomgr_object * prev
Definition: iomgr_internal.h:32
grpc_iomgr_platform_vtable::add_closure_to_background_poller
bool(* add_closure_to_background_poller)(grpc_closure *closure, grpc_error_handle error)
Definition: iomgr_internal.h:41
grpc_iomgr_platform_vtable::is_any_background_poller_thread
bool(* is_any_background_poller_thread)(void)
Definition: iomgr_internal.h:40
grpc_iomgr_platform_is_any_background_poller_thread
bool grpc_iomgr_platform_is_any_background_poller_thread(void)
Definition: iomgr_internal.cc:45
grpc_iomgr_object::next
struct grpc_iomgr_object * next
Definition: iomgr_internal.h:31
closure
Definition: proxy.cc:59
grpc_iomgr_platform_vtable::shutdown_background_closure
void(* shutdown_background_closure)(void)
Definition: iomgr_internal.h:39
grpc_iomgr_platform_vtable::shutdown
void(* shutdown)(void)
Definition: iomgr_internal.h:38
grpc_error
Definition: error_internal.h:42
grpc_closure
Definition: closure.h:56
grpc_iomgr_register_object
void grpc_iomgr_register_object(grpc_iomgr_object *obj, const char *name)
Definition: iomgr.cc:184
grpc_iomgr_platform_init
void grpc_iomgr_platform_init(void)
Definition: iomgr_internal.cc:35
grpc_iomgr_platform_vtable
Definition: iomgr_internal.h:35
port_platform.h


grpc
Author(s):
autogenerated on Fri May 16 2025 02:59:08