
6 Jul
2004
6 Jul
'04
2:43 a.m.
What about a latent_write_lock? It's semantics would be to block on contruction until it only shares the mutex with read_locks. A write_lock could be contructed from a latent_write_lock and this would always work, because another latent_write_lock would still be blocked in it's constructor. This kind of lock would be useful for situations in which you have to read a structure to know if you have to write on it. Bruno Martinez