From 70b8e1eec28dfdf646af5d3a3347fbe0d2ce5046 Mon Sep 17 00:00:00 2001 From: lixianjing Date: Wed, 30 Sep 2020 09:18:24 +0800 Subject: [PATCH] update idl --- dllexports/awtk.def | 2 ++ tools/idl_gen/idl.json | 36 ++++++++++++++++++++++++++++++++++++ 2 files changed, 38 insertions(+) diff --git a/dllexports/awtk.def b/dllexports/awtk.def index 770d06187..48215d363 100644 --- a/dllexports/awtk.def +++ b/dllexports/awtk.def @@ -149,6 +149,8 @@ EXPORTS tk_init_internal tk_deinit_internal tk_exit + tk_is_ui_thread + tk_run_in_ui_thread asset_loader_default_create asset_loader_zip_create asset_loader_zip_create_with_reader diff --git a/tools/idl_gen/idl.json b/tools/idl_gen/idl.json index ef4628921..f9d91f562 100644 --- a/tools/idl_gen/idl.json +++ b/tools/idl_gen/idl.json @@ -3610,6 +3610,42 @@ "desc": "返回RET_OK表示成功,否则表示失败。" } }, + { + "params": [], + "annotation": {}, + "desc": "判断当前线程是否是UI线程。", + "name": "tk_is_ui_thread", + "return": { + "type": "bool_t", + "desc": "返回TRUE表示是,否则表示否。" + } + }, + { + "params": [ + { + "type": "tk_callback_t", + "name": "func", + "desc": "函数。" + }, + { + "type": "void*", + "name": "ctx", + "desc": "回调函数的上下文。" + }, + { + "type": "bool_t", + "name": "wait_until_done", + "desc": "是否等待完成。" + } + ], + "annotation": {}, + "desc": "后台线程在UI线程执行指定的函数。", + "name": "tk_run_in_ui_thread", + "return": { + "type": "ret_t", + "desc": "返回RET_OK表示成功,否则表示失败。" + } + }, { "params": [], "annotation": {},