Skip to content
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

windows 下的定时器接口缺失 #1705

Open
rouchie opened this issue Mar 23, 2025 · 1 comment
Open

windows 下的定时器接口缺失 #1705

rouchie opened this issue Mar 23, 2025 · 1 comment

Comments

@rouchie
Copy link

rouchie commented Mar 23, 2025

windows下没有找到文档里提到的定时器接口,是忘了实现吗

static WFTimerTask *create_timer_task(const std::string& timer_name,
                                          time_t seconds, long nanoseconds,
                                          timer_callback_t callback);

    static int cancel_by_name(const std::string& timer_name)
    {
        cancel_by_name(const std::string& timer_name, (size_t)-1);
    }

    static int cancel_by_name(const std::string& timer_name, size_t max);
@Barenboim
Copy link
Contributor

你好。Windows下缺少可取消的定时器接口。普通的定时器可以用。

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

2 participants