-
Notifications
You must be signed in to change notification settings - Fork 225
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
lock_api: Make RawMutex::unlock() unsafe.
Unlocking a Mutex that you do not hold is likely to cause undefined behavior. If unlock() is a safe method, then it likely impossible to provide a sound and efficient implemention of the method. Since this API is usually only called by the lock_api Mutex structs, this change should be invisible to the users, but clarifies what guarantees implementers must make.
- Loading branch information
Thomas Bächler
committed
Jun 17, 2020
1 parent
1f6e68e
commit 14e28ca
Showing
4 changed files
with
47 additions
and
12 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
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