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

fix: blockqueue pop timeout bug #259

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

wenh-zhang
Copy link

@wenh-zhang wenh-zhang commented Feb 10, 2024

1.定时结束的时间点没有算上now.tv_usec,且传入的毫秒参数求余后与纳秒的转换似乎不对
修改后得到精确的结束时间点

2.重新修改了1e6为1000000,以免发生不同类型变量相除的问题

3.为定时器添加了时间轮版本,函数接口与原来一致,头文件timer/lst_timer.h换成timer/time_wheel_timer.h即可使用。

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

Successfully merging this pull request may close these issues.

1 participant