-
Notifications
You must be signed in to change notification settings - Fork 257
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
Replace the wait_queue data structure VecQueue with a linked list #184
base: main
Are you sure you want to change the base?
Conversation
7b76e04
to
db2bc87
Compare
modules/axtask/src/run_queue.rs
Outdated
pub fn blocked_resched( | ||
&mut self, | ||
mut wq_guard: WaitQueueGuard, | ||
curr_waiter: Arc<WaitTaskNode>, |
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 still seems awkward, curr_waiter
is just a wrapper for crate::current()
in this code block.
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.
Here need param waiter
, because wq_guard have to push back the curr wrapper
, we can't crteate the wrapper in blocked_resched
, because waiter
fast delete in caller, need use it; we can discuss whether there is a better way
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.
6219d10 in this commit, give a plan remove wq_guard and waiter
6219d10
to
1f46842
Compare
1f46842
to
b2e6261
Compare
-------- 1 use Rawlist for wait queue 2 fix mutex size after wait_queue modify 3 add unit test for axsync/mutex size Note: must use an unique &T as rawlist node Signed-off-by: guoweikang <[email protected]>
b6cb9f7
to
2c8f9fa
Compare
TODO: Replace branch with the official version number