Log4net
  1. Log4net
  2. LOG4NET-232

Use ReaderWriterLockSlim instead of ReaderWriterLock.

    Details

    • Type: Improvement Improvement
    • Status: Resolved
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 1.2.10
    • Fix Version/s: 1.2.12
    • Component/s: None
    • Labels:
      None
    • Environment:
      Any

      Description

      ReaderWriterLock should be replaced with ReaderWriterLockSlim according to Microsoft for performance and simplification reasons.

      MSDN: http://msdn.microsoft.com/en-us/library/system.threading.readerwriterlock.aspx

      The .NET Framework has two reader-writer locks, ReaderWriterLockSlim and ReaderWriterLock. ReaderWriterLockSlim is recommended for all new development. ReaderWriterLockSlim is similar to ReaderWriterLock, but it has simplified rules for recursion and for upgrading and downgrading lock state. ReaderWriterLockSlim avoids many cases of potential deadlock. In addition, the performance of ReaderWriterLockSlim is significantly better than ReaderWriterLock.

        Issue Links

          Activity

          Dominik Psenner made changes -
          Status Open [ 1 ] Resolved [ 5 ]
          Assignee Dominik Psenner [ nachbarslumpi ]
          Fix Version/s 1.2.12 [ 12318546 ]
          Fix Version/s 3.5 [ 12317610 ]
          Resolution Fixed [ 1 ]
          Gavin made changes -
          Link This issue depends upon LOG4NET-176 [ LOG4NET-176 ]
          Gavin made changes -
          Link This issue depends on LOG4NET-176 [ LOG4NET-176 ]
          Stefan Bodewig made changes -
          Fix Version/s 3.5 [ 12317610 ]
          Piers Williams made changes -
          Field Original Value New Value
          Link This issue depends on LOG4NET-176 [ LOG4NET-176 ]
          Aron Weiler created issue -

            People

            • Assignee:
              Dominik Psenner
              Reporter:
              Aron Weiler
            • Votes:
              2 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development