forked from etrepat/baum
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add pessimistic locking. Closes etrepat#89.
Use pessimistic locks when performing certain operations which may result in a race condition. Mainly: + When moving nodes (updates bounds and depth for whole subbranches). + While looking for rightmost node (at every node creation) which may result in some error, mainly if it gets updated while doing this. + When pruning whole subtrees.
- Loading branch information
Showing
2 changed files
with
51 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters