Boost logo

Boost :

From: David Bien (davidbien_at_[hidden])
Date: 2024-04-26 18:30:51


"Incidentally, underscore followed by a capital letter is reserved to the
implementation and you're not supposed to use such identifiers."

Yeah, people have been telling me that for 35 years of writing C++ - the fact is that the compiler mangles every single name - as you well know... I literally have never encountered a single problem due to my coding style.

Yeah, the pattern looks correct to me as well - I mean if the m_cv and m_cvMutex are passing then the thread should exit, no?

It seems foolproof - the code that is - no reason it shouldn't exit the cleanup thread. I'd love for someone to poke holes in this theory.

bien
________________________________
From: Peter Dimov <pdimov_at_[hidden]>
Sent: Friday, April 26, 2024 11:25 AM
To: 'David Bien' <davidbien_at_[hidden]>; boost_at_[hidden] <boost_at_[hidden]>
Subject: RE: [boost] BOOST_THREAD_HAS_EINTR_BUG...

David Bien wrote:
> Sure, but then there must be a bug in my code... do you see one? It's pretty
> simple - and once again has worked for many weeks of testing under other
> platforms.

No, I don't see a bug in the code you posted. (Assuming that m_thread
is joinable and executes _CleanupThread.)

Incidentally, underscore followed by a capital letter is reserved to the
implementation and you're not supposed to use such identifiers.

> ________________________________
>
> From: Peter Dimov <pdimov_at_[hidden]>
> Sent: Friday, April 26, 2024 11:15 AM
> To: 'David Bien' <davidbien_at_[hidden]>; boost_at_[hidden]
> <boost_at_[hidden]>
> Subject: RE: [boost] BOOST_THREAD_HAS_EINTR_BUG...
>
> David Bien wrote:
> > When it aborts the return is EBUSY.
>
> EBUSY means that you're destroying a locked mutex, so the abort is legitimate.
>
>


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