Opened 10 years ago

Closed 10 years ago

#7791 closed Bugs (wontfix)

suspicious code in shared_mutex::unlock_upgrade

Reported by: Andrey <nikolay@…> Owned by: viboes
Milestone: To Be Determined Component: thread
Version: Boost 1.52.0 Severity: Cosmetic
Keywords: Cc:

Description

shared_mutex::unlock_upgrade contains following code:

if(last_reader)
{
    release_waiters(old_state);
} else {
    release_waiters(old_state);
}

Change History (3)

comment:1 by Andrey <nikolay@…>, 10 years ago

it is related to win32 implementation.

comment:2 by viboes, 10 years ago

Owner: changed from Anthony Williams to viboes
Status: newassigned

The windows version is deprecated since version 3. It will use the generic version when BOOST_THREAD_PROVIDES_GENERIC_SHARED_MUTEX_ON_WIN is defined or BOOST_THREAD_VERSION>=3.

Since 1.53 BOOST_THREAD_VERSION default value will be 3.

The windows version will be removed some versions later.

I don't think it is worth fixing the windows version.

comment:3 by viboes, 10 years ago

Resolution: wontfix
Status: assignedclosed
Note: See TracTickets for help on using tickets.