|
Boost : |
From: Bruno Martínez Aguerre (br1_at_[hidden])
Date: 2004-07-05 21:43:48
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
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk