-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
It turns out the `parking_lot` `arc_lock` future does the main thing we want from `Slot`, giving us `'static` lock guards that unlock the value on drop. The only missing functionality is the "stealing" we need to obtain ownership in order to commit the transaction. Rather than implementing this via `Option`, we add an additional state to `LazyTransaction` and handle it there. Ultimately this removes a lot of code, and makes the synchronisation mechanism even less exotic.
- Loading branch information
Showing
5 changed files
with
35 additions
and
234 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -88,7 +88,6 @@ mod error; | |
mod extension; | ||
mod layer; | ||
mod marker; | ||
mod slot; | ||
mod state; | ||
mod tx; | ||
|
||
|
This file was deleted.
Oops, something went wrong.
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