apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Marc M. Adkins" <mma...@Doorways.org>
Subject RE: read/write lockout
Date Mon, 16 Jun 2003 06:14:41 GMT
> >I have code that uses a rwlock, a mutex, a condition, and an
> atomic variable
> >to provide something approaching fairness (on W2K, I haven't
> gotten around
> >to testing this on Linux yet).  I can post it if anyone is interested.
>
> The OS/2 implementation (locks/os2/thread_rwlock.c) I wrote also avoids
> writer starvation in that it won't allow any new reader locks while a
> writer is waiting. It uses 1 mutex, 1 event semaphore. It should translate
> to Win32 quite easily. If you can spot any holes in my logic,
> please let me
> know :)

Hmmm...does this mean that the APR read/write locks are supposed to avoid
writer starvation?  Should the Windows code be fixed?

mma


Mime
View raw message