Utility to make managing locking/unlocking easier in more complex settings. More...

Public Member Functions | |
| _.Library.Status | OnClose () |
| Utility to make managing locking/unlocking easier in more complex settings. More... | |
| _.Library.Status | OnNew (_.Library.Boolean pImmediateRelease) |
| Set pImmediateRelease to 0 to keep locks in an instance of this class. More... | |
Private Attributes | |
| __Cache | |
| Map of (<global>,<flags>) to lock count. More... | |
| __ImmediateReleaseOnClose | |
| If true, locks are released immediately when the instance of this class goes out of scope. More... | |
| __OIDCache | |
| Map of (<class>,<id>) to lock count. More... | |
Utility to make managing locking/unlocking easier in more complex settings.
Usage pattern:
| _.Library.Status OnClose | ( | ) |
Utility to make managing locking/unlocking easier in more complex settings.
Usage pattern:
Performs an immediate unlock
| _.Library.Status OnNew | ( | _.Library.Boolean | pImmediateRelease | ) |
Set pImmediateRelease to 0 to keep locks in an instance of this class.
until the end of the current transaction even once the instance goes out of scope.
|
private |
Map of (<global>,<flags>) to lock count.
|
private |
If true, locks are released immediately when the instance of this class goes out of scope.
(If not, standard handling for transactions will apply instead.)
|
private |
Map of (<class>,<id>) to lock count.