Boost logo

Boost :

Subject: [boost] [thread] Assertion failed get_system_time_sentinel()
From: Filip Klasson (filkl784_at_[hidden])
Date: 2009-03-30 05:27:44


I get Assertion failed
timed_lock(::boost::detail::get_system_time_sentinel()), file
c:\boost\thread\win32\basic_timed_mutex.hpp, line 64.

Code in basic_timed_mutex.hpp:
void lock()

//Line 64

Code in thread_time.hpp:
namespace boost {
    namespace detail {
        inline system_time get_system_time_sentinel()
            return system_time(boost::posix_time::pos_infin);

I read in a previous thread that this was a known bug that is fixed in Boost
1.38 but i am using Boost 1.38. Is this another bug or is it not fixed? This
only happends sometimes and it happends when i call wait on a condition
Here is my code, i have marked where Assertion failed happends.

boost::mutex::scoped_lock lock(_mutex);
while(_queue.empty()) {
} //Assertion failed happends here.
//Another thread is signaling the condition variable when an element is
added to the _queue.

I am happy with all sorts of helpful comments.

Best regards

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