Boost logo

Boost Users :

From: Jonathan Turkanis (technews_at_[hidden])
Date: 2005-04-07 11:38:24


Markus Schöpflin wrote:
> Rene Rivera wrote:
>
>> Markus Schöpflin wrote:

>>> But there is no class which models the Lock concept, or is there?

>> In that section you'll see that there's a M::scoped_lock type that
>> implements the ScopedLock concept. And if you continue reading you
>> can see that each mutex variant has such a type to correspond to the
>> type of Lock concept they support.
>
> 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.

See
http://www.boost.org/doc/html/threads/concepts.html#threads.concepts.lock-models

If locks had no models, Dave's suggestions wouldn't work either. In fact,
mutexes would be useless.

Jonathan


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net