Boost logo

Threads-Devel :

Subject: Re: [Threads-devel] [thread] BUG: null_mutex missing constructors in 1.53
From: Vicente J. Botet Escriba (vicente.botet_at_[hidden])
Date: 2013-02-11 13:47:00


Le 11/02/13 19:20, Vicente J. Botet Escriba a écrit :
> Le 11/02/13 18:52, Vicente J. Botet Escriba a écrit :
>> Le 11/02/13 14:01, Jurko Gospodnetiæ a écrit :
>>> Hi.
>>>
>>> boost::null_mutex class seems to not have any constructors, as
>>> defined in the Boost 1.53 library release.
>>>
>>> My guess is that it used to have a default constructor but then
>>> copying got disabled for that class by declaring a not-implemented
>>> copy constructor which now prevents the compiler from generating the
>>> default constructor.
>>>
>> Apologies, null_mutex was not ready for release.
>>
>> I will take care of it for 1.53.
>>
> I meant 1.54
>
> Here it is a patch that should improve the things even if I have not
> tested all the interface yet.
>
> svn diff boost/thread/null_mutex.hpp
> Index: boost/thread/null_mutex.hpp
> ===================================================================
> --- boost/thread/null_mutex.hpp (revision 82808)
> +++ boost/thread/null_mutex.hpp (working copy)
> @@ -11,6 +11,7 @@
> #ifndef BOOST_THREAD_NULL_MUTEX_HPP
> #define BOOST_THREAD_NULL_MUTEX_HPP
>
> +#include <boost/thread/detail/config.hpp>
> #include <boost/thread/detail/delete.hpp>
> #include <boost/chrono/chrono.hpp>
>
> @@ -28,6 +29,8 @@
>
> BOOST_THREAD_NO_COPYABLE( null_mutex) /*< no copyable >*/
>
> + null_mutex() {}
> +
> /// Simulates a mutex lock() operation. Empty function.
> void lock()
> {
Committed revision 82823.


Threads-Devel list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk