Message106377
> In this case, "acquire" isn't ambiguous. All the other lock types
> actually acquire a write lock, so it makes sense to have the operation
> with the same name they use also acquire a write lock on this object.
Well, it looks like a strange kind of "consistency" to me, since other
lock types are not dual. Both posix and Java APIs don't seem to imply
that the write lock is the "default" lock in a RW lock. However, I'm not
a synchronization specialist.
> I realized that read/write locks are actually shared/exclusive locks,
> which might form the basis for a name that doesn't collide with RLock.
> Boost
> (http://www.boost.org/doc/libs/1_43_0/doc/html/thread/synchronization.html#thread.synchronization.mutex_types.shared_mutex) uses shared_mutex for the concept, so SLock or SELock?
SELock looks ok, but I have to say that RWLock is more obvious (I don't
need to do a search to guess that RW means "read/write"). |
|
Date |
User |
Action |
Args |
2010-05-24 17:51:13 | pitrou | set | recipients:
+ pitrou, kristjan.jonsson, jyasskin |
2010-05-24 17:51:11 | pitrou | link | issue8800 messages |
2010-05-24 17:51:11 | pitrou | create | |
|