Author Archive

Jeffrey

September 20th, 2005

I’m admittedly late to the party on this, but Richter has developed a much faster ReaderWriterLock to address some performance problems with the current implementation; it is supposed to be available in later editions of the framework. There’s not much out there about this but you can read a bit about it at Wesner Moise’s blog. The syntax is interesting,

myLock.AcquireWriterLock(delegate(LockContext context)
{
// code inside lock here
context.ReleaseLock();
// my code after lock
});