代码拉取完成,页面将自动刷新
函数名称 | 说明 |
---|---|
tk_cond_var_awake | 唤醒。 |
tk_cond_var_create | 创建cond_var。 |
tk_cond_var_destroy | 销毁cond_var对象。 |
tk_cond_var_wait | 等待。 |
唤醒。
ret_t tk_cond_var_awake (tk_cond_var_t* cond_var);
参数 | 类型 | 说明 |
---|---|---|
返回值 | ret_t | 返回RET_OK表示成功,否则表示失败。 |
cond_var | tk_cond_var_t* | cond_var对象。 |
创建cond_var。
tk_cond_var_t* tk_cond_var_create ();
参数 | 类型 | 说明 |
---|---|---|
返回值 | tk_cond_var_t* | cond_var对象。 |
销毁cond_var对象。
ret_t tk_cond_var_destroy (tk_cond_var_t* cond_var);
参数 | 类型 | 说明 |
---|---|---|
返回值 | ret_t | 返回RET_OK表示成功,否则表示失败。 |
cond_var | tk_cond_var_t* | cond_var对象。 |
等待。
ret_t tk_cond_var_wait (tk_cond_var_t* cond_var, uint32_t* timeout_ms);
参数 | 类型 | 说明 |
---|---|---|
返回值 | ret_t | 返回RET_OK表示成功,否则表示失败。 |
cond_var | tk_cond_var_t* | cond_var对象。 |
timeout_ms | uint32_t* | 最长等待时间。 |
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。