Opened 9 years ago

Closed 5 years ago

#9456 closed Bugs (fixed)

BOOST_SPIRIT_THREADSAFE not working well when BOOST_THREAD_DONT_PROVIDE_NESTED_LOCKS is defined

Reported by: anonymous Owned by: Joel de Guzman
Milestone: To Be Determined Component: spirit
Version: Boost 1.55.0 Severity: Problem
Keywords: spirit wave Cc:

Description

BOOST_SPIRIT_THREADSAFE 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).
Also Boost Wave library fails to compile due to dependence on Spirit.
I suggest to replace scoped_lock typedefs with explicit boost::unique_lock usage.
Best regards, Maksim.

Attachments (1)

impl.patch (2.1 KB ) - added by anonymous 9 years ago.

Download all attachments as: .zip

Change History (6)

by anonymous, 9 years ago

Attachment: impl.patch added

comment:1 by anonymous, 7 years ago

The issue still exists in Boost 1.58.0

comment:2 by Joel de Guzman, 7 years ago

Could you do a pull request instead?

https://github.com/boostorg/spirit/tree/develop

Thanks!

comment:3 by Joel de Guzman, 7 years ago

Yes please! :) Thanks!

comment:5 by Joel de Guzman, 5 years ago

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.