-
-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(maitake): add
maitake::sync::RwLock
This branch adds an async read-write lock implementation in `maitake::sync`. This lock is implemented using the `Semaphore` type added in #301. The rwlock is modeled using a `Semaphore` with `Semaphore::MAX_PERMITS` permits in it; a reader must acquire a single permit to gain read access, while a writer must acquire all the permits.
- Loading branch information
Showing
8 changed files
with
693 additions
and
15 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
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
Oops, something went wrong.