-
Notifications
You must be signed in to change notification settings - Fork 261
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
[refactor] add set_cpumask apis, seperate CurrentRunQueueRef, add put_task_with_state #183
Conversation
modules/axtask/src/run_queue.rs
Outdated
if !prev.is_idle() { | ||
self.scheduler.lock().put_prev_task(prev.clone(), preempt); | ||
} | ||
/// Common reschedule subroutine, |
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.
Is the comment wrong?
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.
maybe, it's not common routine now, ( I renamed it as subroutine if you noticed
modules/axtask/src/run_queue.rs
Outdated
@@ -53,11 +53,11 @@ const ARRAY_REPEAT_VALUE: MaybeUninit<&'static mut AxRunQueue> = MaybeUninit::un | |||
/// | |||
/// ## Returns | |||
/// | |||
/// A static reference to the current run queue. | |||
/// [`CurRunQueueRef`]: a static reference to the current `AxRunQueue`. |
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.
It is conflicted with existing hyperlink syntax of rustdoc.
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.
ok, I've fixed them as CurRunQueueRef
modules/axtask/src/run_queue.rs
Outdated
/// Note: | ||
/// `CurRunQueueRef` is used to get a reference to the run queue on current CPU, | ||
/// in which scheduling operations can be performed. | ||
pub(crate) struct CurRunQueueRef<'a, G: BaseGuard> { |
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.
Use full name: CurrentRunQueueRef
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.
ok
No description provided.