Boost logo

Boost :

From: davlet_panech (davlet_panech_at_[hidden])
Date: 2002-01-30 11:21:30


Hi,

It seems that the current implementation of some Boost.Threads
classes violates it's concept requirements, for example, here's how
condition::wait() looks like:

    template <typename L>
    void wait(L& lock)
    {
        if (!lock)
            throw lock_error();

        do_wait(lock.m_mutex);
    }

Type L is supposed to implement ScopedLock concept, which, unless I
am mistaken, doesn't mention anything named `m_mutex'. Am I missing
something here?

Thanks,
D.P.


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk