申请MESA_htable句柄时,初始化参数

This commit is contained in:
liuxueli
2020-08-19 13:06:50 +08:00
parent 3e3ade9f4e
commit 9c3840ba48

View File

@@ -624,6 +624,7 @@ int NTC_APP_PLUG_INIT()
int max_thread_num = get_thread_count();
g_ntc_app_plug.lhash_handle = (MESA_htable_handle *)calloc(max_thread_num, sizeof(MESA_htable_handle));
memset(&args, 0, sizeof(args));
args.thread_safe = 0;
args.recursive = 0;
args.hash_slot_size = 8192;