Modify

Opened 4 years ago

Closed 4 years ago

#8371 closed Bugs (fixed)

C++11 once_flag enabled when constexpr is not available

Reported by: Andrey Semashev Owned by: viboes
Milestone: Boost 1.54.0 Component: thread
Version: Boost 1.53.0 Severity: Problem
Keywords: Cc:

Description

Boost.Thread should disable C++11 interface for call_once (and once_flag in particular) when the compiler does not support constexpr. Otherwise once_flag construction is not thread safe. This has been brought up in this topic.

Attachments (1)

thread_config.patch (817 bytes) - added by Andrey Semashev 4 years ago.
The patch disables C++11 call_once when constexpr is not supported.

Download all attachments as: .zip

Change History (5)

Changed 4 years ago by Andrey Semashev

Attachment: thread_config.patch added

The patch disables C++11 call_once when constexpr is not supported.

comment:1 Changed 4 years ago by Andrey Semashev

Owner: changed from Anthony Williams to viboes

comment:2 Changed 4 years ago by viboes

Milestone: To Be DeterminedBoost 1.54.0
Status: newassigned

Thanks for the report. This has already been fixed on trunk and merged to release.

comment:3 Changed 4 years ago by Andrey Semashev

Oh, thanks. I missed the commit somehow.

comment:4 Changed 4 years ago by viboes

Resolution: fixed
Status: assignedclosed

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain viboes.
The resolution will be deleted.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.