aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/iomgr/iomgr.c
diff options
context:
space:
mode:
authorGravatar David Klempner <klempner@google.com>2015-01-28 17:00:21 -0800
committerGravatar David Klempner <klempner@google.com>2015-01-28 17:00:21 -0800
commitd178524a748be300bc370a2ade797beda1c5b7bc (patch)
tree2eb6bb7061c779f180c9ea0cf9513300700b9ca1 /src/core/iomgr/iomgr.c
parentf52188ae10044951706c484e8d7047721d375892 (diff)
Freelist grpc_fd objects
This is necessary for efficient implementations where multiple threads simultaneously sit in epoll_wait and the like on the same pollset.
Diffstat (limited to 'src/core/iomgr/iomgr.c')
-rw-r--r--src/core/iomgr/iomgr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/iomgr/iomgr.c b/src/core/iomgr/iomgr.c
index 7f266ab235..8989b491d5 100644
--- a/src/core/iomgr/iomgr.c
+++ b/src/core/iomgr/iomgr.c
@@ -98,7 +98,6 @@ void grpc_iomgr_shutdown(void) {
gpr_timespec shutdown_deadline =
gpr_time_add(gpr_now(), gpr_time_from_seconds(10));
- grpc_iomgr_platform_shutdown();
gpr_mu_lock(&g_mu);
g_shutdown = 1;
@@ -129,6 +128,7 @@ void grpc_iomgr_shutdown(void) {
gpr_event_wait(&g_background_callback_executor_done, gpr_inf_future);
+ grpc_iomgr_platform_shutdown();
grpc_alarm_list_shutdown();
gpr_mu_destroy(&g_mu);
gpr_cv_destroy(&g_cv);