Opened 5 years ago

Last modified 3 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 5 years ago.

Download all attachments as: .zip

Change History (2)

Changed 5 years ago by anonymous

Attachment: fifo_worker.hpp.patch added

comment:1 Changed 3 years ago by anonymous

The issue still exists in Boost 1.58.0

Note: See TracTickets for help on using tickets.