Boost logo

Boost :

Subject: Re: [boost] Boost.log: set_channel name dynamically for a basic_composite_logger
From: syvyi (alexander.svk_at_[hidden])
Date: 2012-10-15 16:48:34

Andrey, I am using v.1.1 in code attached in file. It is a test of 2 files.
Please, take a look at those files, tell if you succeed to compile them.
This is the same code as above but without adapter, which worked.


after tracing I get

Here is the problem, WatForSingleObject is called and after one BOOST_LOG
macros app. is frozen.

void lock()
                long old_count=active_count;

                    bool lock_acquired=false;
                    void* const sem=get_event();


Then function below returns false.

template< typename CharT >
BOOST_LOG_EXPORT bool synchronous_frontend< CharT >::try_consume(record_type
const& record)
    register implementation* pImpl = this->BOOST_NESTED_TEMPLATE get_impl<
implementation >();
        unique_lock< mutex > lock(pImpl->m_BackendMutex, try_to_lock);
        if (lock.owns_lock())
            (pImpl->m_Consume)(pImpl->m_pBackend.get(), record);
            return true;
            return false; // returns

in locks.hpp

 bool try_lock()
"boost unique_lock has no mutex"));
            if(owns_lock()) // failed

View this message in context:
Sent from the Boost - Dev mailing list archive at

Boost list run by bdawes at, gregod at, cpdaniel at, john at