Opened 11 years ago

Closed 10 years ago

#6676 closed Feature Requests (fixed)

lock conversion should be explicit

Reported by: viboes Owned by: viboes
Milestone: Boost 1.50.0 Component: thread
Version: Boost 1.49.0 Severity: Problem
Keywords: Cc:

Description

unique_lock, shared_lock and upgrade_lock provide implicit move conversions that should be implicit to avoid surprises. In addition it provides also move assignments that could result in the same kind of unexpected behavior.

The constructors must be explicit and the assignment removed.

Change History (2)

comment:1 by viboes, 11 years ago

Milestone: To Be DeterminedBoost 1.50.0
Status: newassigned

comment:2 by viboes, 10 years ago

Resolution: fixed
Status: assignedclosed

define BOOST_THREAD_PROVIDES_EXPLICIT_LOCK_CONVERSION to get the explicit conversions.

Committed in release branch at [78543]

Note: See TracTickets for help on using tickets.