Skip to content

Conversation

@bjhargrave
Copy link
Member

We use a queue since there will be more mutations than traversals. We only mark thread as holding read lock once it actually does. We only check for write upgrade when tryLock times out so we can potentially avoid traversing the queue.

Tests are also added.

We use a queue since there will be more mutations than traversals.
We only mark thread as holding read lock once it actually does. We
only check for write upgrade when tryLock times out so we can
potentially avoid traversing the queue.

Tests are also added.

Signed-off-by: BJ Hargrave <bj@hargrave.dev>
@bjhargrave bjhargrave merged commit e1eefb7 into bndtools:master Sep 19, 2022
@bjhargrave bjhargrave deleted the workspace-lock-deadlock-detection-fix branch September 19, 2022 16:04
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.

1 participant