Opened 9 years ago

Last modified 7 years ago

#9460 new Bugs

boost::statechart::fifo_worker not working well when BOOST_THREAD_DONT_PROVIDE_NESTED_LOCKS is defined

Reported by: myasnikovmaksim@… Owned by: Andreas Huber
Milestone: To Be Determined Component: statechart
Version: Boost 1.55.0 Severity: Problem
Keywords: Cc:

Description

boost::statechart::fifo_worker uses boost::mutex::scoped_lock typedef which is not accessible when BOOST_THREAD_DONT_PROVIDE_NESTED_LOCKS is defined (this macro is defined when BOOST_THREAD_VERSION is set to 4).
I suggest to replace scoped_lock typedefs with explicit boost::unique_lock usage.
Best regards, Maksim.

Attachments (1)

fifo_worker.hpp.patch (834 bytes ) - added by anonymous 9 years ago.

Download all attachments as: .zip

Change History (2)

by anonymous, 9 years ago

Attachment: fifo_worker.hpp.patch added

comment:1 by anonymous, 7 years ago

The issue still exists in Boost 1.58.0

Note: See TracTickets for help on using tickets.