update idl

This commit is contained in:
lixianjing 2020-09-30 09:18:24 +08:00
parent 1b20677c6e
commit 70b8e1eec2
2 changed files with 38 additions and 0 deletions

View File

@ -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

View File

@ -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": {},