-
Notifications
You must be signed in to change notification settings - Fork 115
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rework AFSelector to normalize and simplify its locking
* Place bulk of `select0` operations under `this` and `publicSelectedKeys` locks to reduce locking/unlocking thrash given frequency of locking operations * Lock `publicSelectedKeys` instead of `selectedKeys` since that is what clients of AFSelector are locking on * Eschew uses of synchronized methods in favor of locking `this` via synchronized blocks * Use assertions to check lock invariants
- Loading branch information
1 parent
b9695d6
commit 1346d2c
Showing
1 changed file
with
88 additions
and
78 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