Browse by Tags

Related Posts

  • More on Syncronized - upgrade reader to writer

    In using my new sync wrapper to clean up a bunch of older code, I came across the need to be able to upgrade from a reader to a writer for certain operations. One example of this it to clean up expired items in my my implementation of a Cache. protected Synchronized<Dictionary<string, ICacheItem>>...
    Posted to Eddie Garmon's Weblog (Weblog) by UltimateRinger on 07-11-2008, 12:00 AM
    Filed under: .NET, C#, Lambdas, Synchronization
  • Sync Enumerator update.

    After a few more unit tests, I have fixed an issue with the GetSyncEnumerator method. The origional had 2 issues. was that the lock was being released too soon. was that a write in the middle of a long enumeration would cause a race and/or a deadlock. The fix was to 'write' lock for enumeration, and...
    Posted to Eddie Garmon's Weblog (Weblog) by UltimateRinger on 06-30-2008, 12:00 AM
    Filed under: .NET, C#, Lambdas, Synchronization
  • Synchronization, ReaderWriterLockSlim, and Lambdas

    Here is a synchronization wrapper that I wrote to wrap any object, and an implementation of a SynchronizedDictionary to show how to use it. I offer this code as-is without any waranty to fitness, to the public domain, for any purpose you see fit. Get a text version of this code here. On with the show...
    Posted to Eddie Garmon's Weblog (Weblog) by UltimateRinger on 06-27-2008, 12:00 AM
    Filed under: .NET, C#, Lambdas, Synchronization
Page 1 of 1 (3 items)
Microsoft Communities