Christian Heimes added the comment:

A RW lock is part of POSIX threads [1]. It's usually a good idea to either use 
POSIX functions or to mimic their behavior. After all POSIX is an industry 
standard.

Boost and Java have several lock and rw lock implementations. Wikipedia [2] is 
a good starting point for the various implementations. The page also mentions a 
seqlock which looks interesting to me as it's fast for few writers with lots of 
readers.

[1] http://linux.die.net/man/3/pthread_rwlock_init 
[2] http://en.wikipedia.org/wiki/Readers%E2%80%93writer_lock

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue8800>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to