Date: prev next · Thread: first prev next last
2011 Archives by date, by thread · List index



Stephan Bergmann wrote:

On Aug 10, 2011, at 11:22 PM, julien2412 wrote:
...
Could it be replaced by just a log (which function should be used for
this
kind of case ?) or something since a throw in destructor should be
avoided ?
Given that assertNotNull() further down in that file uses std::abort to
signal failure, the best fix probably is to use that in ~WaitCondition,
too:

if (m_condition.wait() != osl::Condition::result_ok) {
    std::cerr << "osl::Condition::wait failed\n";
    std::abort()
}

Ok thank you for the answer, I commited and pushed on master.

Julien.

--
View this message in context: 
http://nabble.documentfoundation.org/Throwing-exception-in-destructor-tp3243968p3247197.html
Sent from the Dev mailing list archive at Nabble.com.

Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.