🐞 fix(TSG-15308): 修复packet io thread启动时,intercept_policy_enforcer为空导致core

This commit is contained in:
wangmenglan
2023-05-31 19:41:18 +08:00
parent 6574566276
commit 0973d8c35a
3 changed files with 9 additions and 2 deletions

View File

@@ -177,6 +177,7 @@ struct tfe_proxy
};
extern struct tfe_proxy * g_default_proxy;
extern int worker_thread_ready;
#define TFE_PROXY_STAT_INCREASE(field, val) \
do { __atomic_fetch_add(&g_default_proxy->stat_val[field], val, __ATOMIC_RELAXED); } while(0)