-
Notifications
You must be signed in to change notification settings - Fork 572
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[C# ]Add TryLock and TryPromoteSharedToExclusive (#848)
* Add Try(Promote)Lock * Add drain of writer to HashBucket.TryLockShared Clean up the latching spinCount loops and add "readonly" to "get" accessors in HashBucket and RecordInfo * remove stray SetDirty (it's set later) * Add UpsertOptions, RMWOptions, and DeleteOptions, all with KeyHash, and add overloads of these operations to take this argument. Add KeyHash to ReadOptions and add more Read overloads to include ReadOptions. * LockCode => KeyHash * Clean up more LockCode -> KeyHash; handle null pool in SectorAlignedMemory.Return * Move GetKeyHash from ILockableContext to IFasterContext and implement on all session types
- Loading branch information
Showing
37 changed files
with
2,777 additions
and
461 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.