logging-log4net-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mike Barry (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (LOG4NET-232) Use ReaderWriterLockSlim instead of ReaderWriterLock.
Date Wed, 25 Sep 2013 15:06:03 GMT

    [ https://issues.apache.org/jira/browse/LOG4NET-232?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13777587#comment-13777587
] 

Mike Barry commented on LOG4NET-232:
------------------------------------

4.0 is only supported on sp3. Since you didn't enable it for .net 3.5 which does support xp
sp2 all should be well in the world. Sorry for the concern!
                
> Use ReaderWriterLockSlim instead of ReaderWriterLock.
> -----------------------------------------------------
>
>                 Key: LOG4NET-232
>                 URL: https://issues.apache.org/jira/browse/LOG4NET-232
>             Project: Log4net
>          Issue Type: Improvement
>    Affects Versions: 1.2.10
>         Environment: Any
>            Reporter: Aron Weiler
>            Assignee: Dominik Psenner
>            Priority: Minor
>             Fix For: 1.2.12
>
>
> 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. 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message