Skip to content

Conversation

@AayushSabharwal
Copy link

@AayushSabharwal AayushSabharwal commented Aug 6, 2025

I am by no means good at writing threading/asynchronicity primitives, and would greatly appreciate someone nitpicking the trylock implementation.

return
end

function Base.trylock(rw::ReadWriteLock)

Choose a reason for hiding this comment

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

is this trying to readlock or write lock?

Copy link
Author

Choose a reason for hiding this comment

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

Writelock, since lock and unlock are for writelock. The readlock equivalent would likely be a custom tryreadlock function.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants