Subject: Re: [boost] [thread] ~mutex and BOOST_VERIFY
From: Gaetano Mendola (mendola_at_[hidden])
Date: 2013-05-28 15:16:25
On 28/05/2013 19.25, Vicente J. Botet Escriba wrote:
> Le 27/05/13 05:11, Andrey Semashev a Ã©crit :
>> On Sunday 26 May 2013 23:45:48 Vicente J. Botet Escriba wrote:
>>> Le 26/05/13 22:28, Gaetano Mendola a Ã©crit :
>>>> I saw that the destructor of ~mutex doesn't have
>>>> a BOOST_VERIFY anymore on the return value of
>>>> pthread_mutex_destroy. From SVN logs I can see it was
>>>> removed in the commit 75882 to manage the EINTR due
>>>> to some bugged POSIX implementation.
>>>> I will reintroduce the BOOST_VERIFY like this:
>>>> int ret;
>>>> ret = pthread_mutex_destroy(&m);
>>>> } while (ret == EINTR);
>>> What do you want to verify?
>> Checking the result may be useful for detecting incorrect operation
>> (e.g. when the mutex is destroyed with a blocked thread on it).
> Thanks Andrey,
> I will take care of this, and add BOOST_VERIFY. Gaetano, could you
> create a ticket so that I don't forget it?
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk