apr-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 51360] New: Use of Windows 7 / 2008R2 SRW Locks (Slim Reader/Writer Lock) in rwlock
Date Sat, 11 Jun 2011 18:32:26 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=51360

             Bug #: 51360
           Summary: Use of Windows 7 / 2008R2 SRW Locks (Slim
                    Reader/Writer Lock) in rwlock
           Product: APR
           Version: 1.4.2
          Platform: PC
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: APR
        AssignedTo: bugs@apr.apache.org
        ReportedBy: leandro.becker@gmail.com
    Classification: Unclassified


Created attachment 27150
  --> https://issues.apache.org/bugzilla/attachment.cgi?id=27150
Rwlock that uses the Windows SRW locks when OS supports.

Hello,

I was wondering about using the Windows 7 and 2008 R2 SRW locks at the APR
rwlock implementation. The Windows Vista/2008 does not have the Try APIs to try
get the read/write lock, so in this case (and older OSs), the old APR method is
used.

I made an implementation of it, but there is a restriction: The Windows SRW
lock is not reentrant, ie, the same thread cannot lock the SRW object more than
once.

Attached is the .diff file for win32\thread_rwlock.c

I hope this patch can be useful.

Regards.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@apr.apache.org
For additional commands, e-mail: bugs-help@apr.apache.org


Mime
View raw message