summaryrefslogtreecommitdiff
path: root/runtime/src/runtime.c
diff options
context:
space:
mode:
author陆秋文 <[email protected]>2016-12-15 12:35:11 +0800
committer陆秋文 <[email protected]>2016-12-15 12:35:11 +0800
commitecbfe0737fecf2929cb77d368bb3ecefade93e49 (patch)
tree44796254a61be71c27e94426c7e9d71121b4e913 /runtime/src/runtime.c
parent7c6adef9371b899ff9428bd8c74adcfc43a2063a (diff)
parent092ea4de6b07a6da5e9b349b099d6f209c3a2c67 (diff)
Merge branch 'dev-4.X.X' into 'rel-4.X.X' v4.0.11-20161215
REL: v4.0.11 增加从进程监测主进程崩溃的功能。主进程崩溃,会立即导致所有的从进程退出。增加死锁监测功能,主进程线程死锁后立即退出。 See merge request !15
Diffstat (limited to 'runtime/src/runtime.c')
-rw-r--r--runtime/src/runtime.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/runtime/src/runtime.c b/runtime/src/runtime.c
index 9472438..ac40178 100644
--- a/runtime/src/runtime.c
+++ b/runtime/src/runtime.c
@@ -67,7 +67,9 @@ void mr_runtime_slave_init()
struct mr_global_ctx * g_ctx = mr_global_ctx_get();
assert(g_ctx != NULL);
- struct mr_runtime_ctx * rt_ctx = (struct mr_runtime_ctx *)g_ctx->ctx_runtime;
+ struct mr_runtime_ctx * rt_ctx = (struct mr_runtime_ctx *)g_ctx->ctx_runtime;
+ RTE_SET_USED(rt_ctx);
+
assert(g_ctx->ctx_runtime != NULL);
assert(rt_ctx->app_ctx != NULL);
assert(rt_ctx->hwinfo_ctx != NULL);