Example #1
0
 internal static Releaser CreateWriteReleaser(ReaderWriterLock toRelease)
 {
     return(new Releaser(toRelease, true));
 }
Example #2
0
 private Releaser(ReaderWriterLock toRelease, bool writer, bool isUpgradeable = false)
 {
     this.toRelease     = toRelease;
     this.writer        = writer;
     this.isUpgradeable = isUpgradeable;
 }
Example #3
0
 internal static Releaser CreateReadReleaser(ReaderWriterLock toRelease, bool isUpgradeable)
 {
     return(new Releaser(toRelease, false, isUpgradeable));
 }