-
-
Notifications
You must be signed in to change notification settings - Fork 145
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
feat: sys_alarm第二版 #710
feat: sys_alarm第二版 #710
Conversation
感谢您的pull request,欢迎加入!🎉 DragonOS社区很兴奋地期待审核您的更改,您将在接下来的两周内收到 @fslongjin @GnoCiYeH @chiichen (NB. this repo may be misconfigured) 的回复。💬😊 Please see the contribution instructions for more information. Namely, in order to ensure the minimum review times lag, PR authors and assigned reviewers should ensure that the review label (
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
现在second,jiffies都是u32混用,然后用一堆散装函数做转换我觉得不太好,我觉得改成,second/ms/ns都用core::time::duration,它可以帮你屏蔽掉second/ms/ns互换的这一层逻辑。然后把jiffies封装一个Jiffies(u32),然后实现 Duration 和 Jiffies 互换的 Trait,这样看起来就很清晰了
@dragonosbot author |
了解 |
@dragonosbot review |
@dragonosbot review |
@dragonosbot review |
@dragonosbot review |
@dragonosbot review |
* alarm系统调用实现
修改pcb中alarm结构和alarmTimer的结构得到更好的封装性,因为调用实现基本重构重写,所以重新pr一次