Boost logo

Boost :

Subject: Re: [boost] [thread] #2636 threads and locks
From: vicente.botet (vicente.botet_at_[hidden])
Date: 2009-05-30 08:11:45


----- Original Message -----
From: "vicente.botet" <vicente.botet_at_[hidden]>
To: <boost_at_[hidden]>
Sent: Saturday, May 30, 2009 1:27 PM
Subject: [boost] [thread] #2636 threads and locks

Hi,
"The standard includes
template <class Duration> unique_lock(mutex_type& m, const Duration& rel_time);
which is not in boost::threads. "

Anthony, I think that this ticket is already on the released locks.hpp file (modified with 48213, 49324) :
        template<typename TimeDuration>
        unique_lock(Mutex& m_,TimeDuration const& target_time):
            m(&m_),is_locked(false)
        {
            timed_lock(target_time);
        }

So it can be closed.

Best,
_____________________
Vicente Juan Botet Escribá

What I have not found is
        template<typename TimeDuration>
        shared_lock(Mutex& m_,TimeDuration const& target_time):
            m(&m_),is_locked(false)
        {
            timed_lock(target_time);
        }

Maybe the reporter mispelled the class?

Vicente


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