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

make at-sync thread safe #35641

Merged
merged 1 commit into from
May 4, 2020
Merged

make at-sync thread safe #35641

merged 1 commit into from
May 4, 2020

Conversation

JeffBezanson
Copy link
Member

fixes #34666

@JeffBezanson JeffBezanson added the multithreading Base.Threads and related functionality label Apr 29, 2020
base/experimental.jl Outdated Show resolved Hide resolved
unlock(cond)
end
end))
while true
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This while true is conceptually invalid for this macro definition. This appears to possibly require changing refs into a proper Channel, rather than reimplementing it here with locks.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is the problem exactly?

@JeffBezanson JeffBezanson merged commit ab5853f into master May 4, 2020
@JeffBezanson JeffBezanson deleted the jb/syncthreads branch May 4, 2020 23:25
Keno pushed a commit that referenced this pull request Jun 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
multithreading Base.Threads and related functionality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

@sync (@spawn @spawn f(); @spawn @spawn g()) is not thread-safe?
3 participants