Skip to content

event变量问题 #15

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
cuicanju opened this issue Jul 18, 2024 · 0 comments
Open

event变量问题 #15

cuicanju opened this issue Jul 18, 2024 · 0 comments

Comments

@cuicanju
Copy link

while (!arg.trigged) {
    ret = s_event_wait(__await__, &arg.event);
    if (ret != 0)
        return ret;
}

请问下,为什么几乎所有的event变量都要这样使用.是因为就算在等待队列中也可能被触发吗.
我想给我的程序connect read 这种操作设置超时 使用 s_event_wait_msec 函数 在没到定时之前被别的地方s_event_set 触发了这个s_event_wait_msec等待的event变量 好像还是存在等待队列中 有没有办法可以直接手动删除这个event 变量

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant