aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/lib/iomgr/executor.c
diff options
context:
space:
mode:
authorGravatar Ken Payson <kpayson@google.com>2017-03-20 14:44:49 -0700
committerGravatar Ken Payson <kpayson@google.com>2017-03-21 14:21:43 -0700
commitac433cf640d90f405edb6d7740140bcdf542aff1 (patch)
treecf5849da567621ce56849564bfe0769189df94ad /src/core/lib/iomgr/executor.c
parentd4143f2821c744e0d9f7ff965bb872418a9ddba2 (diff)
Assert on thread creation
Diffstat (limited to 'src/core/lib/iomgr/executor.c')
-rw-r--r--src/core/lib/iomgr/executor.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/lib/iomgr/executor.c b/src/core/lib/iomgr/executor.c
index a5b62aa888..ae3e2eabc3 100644
--- a/src/core/lib/iomgr/executor.c
+++ b/src/core/lib/iomgr/executor.c
@@ -115,8 +115,8 @@ static void maybe_spawn_locked() {
/* All previous instances of the thread should have been joined at this point.
* Spawn time! */
g_executor.busy = 1;
- gpr_thd_new(&g_executor.tid, closure_exec_thread_func, NULL,
- &g_executor.options);
+ GPR_ASSERT(gpr_thd_new(&g_executor.tid, closure_exec_thread_func, NULL,
+ &g_executor.options));
g_executor.pending_join = 1;
}