提供选项:MAAT_OPT_DEFERRED_LOAD,支持延迟初始化。

This commit is contained in:
zhengchao
2017-08-22 10:03:38 +08:00
parent 64a9284430
commit f5b1b08ee9
5 changed files with 49 additions and 20 deletions

View File

@@ -3168,8 +3168,10 @@ void *thread_rule_monitor(void *arg)
//pthread_setname_np are introduced in glibc2.12
//ret=pthread_setname_np(pthread_self(),maat_name);
assert(ret>=0);
if(feather->DEFERRED_INIT_ON!=0)
if(feather->DEFERRED_LOAD_ON!=0)
{
MESA_handle_runtime_log(feather->logger,RLOG_LV_INFO,maat_module,
"Deferred Loading ON, updating in %s.",__func__);
maat_read_full_config(feather);
}
while(feather->still_working)