-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
WIP workstealing scheduler + refactor for easier experimentation #55542
base: master
Are you sure you want to change the base?
Conversation
|
||
mutable struct Node{T} | ||
const value::Union{T, Nothing} | ||
@atomic next::Union{Node{T}, Nothing} |
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.
You can make this type stable by having next
and prev
point to the current node in case there is no next/previous node.
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.
Oh cool. This will all need some fine comb optimizations for sure.
…ued work. Also add spin master like behaviour
mutable struct ConcurrentDoublyLinkedList{T} | ||
@atomic header::Union{Node{T}, Nothing} | ||
@atomic header::Union{Node{T}, Nothing} # 8 bytes |
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.
4 byte on 32 bit, right?
This currently doesn't work. I assume the bug is on the queue because I'm getting task already running errors.