Rene Rivera wrote:
Markus Schöpflin wrote:
Pardon me for being dense, but I don't see what you are referring to on this page. In Table 10.11, the Lock concept doesn't have any model. AFAIK, you can only work with dynamically allocated locks as Dave outlined in another post. But OTOH, perhaps I'm just beeing blind when reading the page.
Maybe I'm misunderstanding what you are trying to do.. In that table (10.11) it is true that Lock doesn't have a model, but it's refinements do have models. What prevents you from using say, the boost::mutex::scoped_lock model? (Which has the lock/unlock calls.)
Bah, I just realized that I indead was a little slow-witted when reading that page. Of course scoped_lock has lock() and unlock() calls. I didn't really realize that refinement implies that the interface of the Lock concept is also present in the ScopedLock concept. Sorry for the noise. Markus