Skip to content

Commit

Permalink
apply patch ref #7720.
Browse files Browse the repository at this point in the history
  • Loading branch information
viboes committed Sep 23, 2015
1 parent 16ece26 commit 205a1d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/boost/thread/win32/shared_mutex.hpp
Expand Up @@ -742,14 +742,14 @@ namespace boost
new_state.upgrade=false;
bool const last_reader=!--new_state.shared_count;

new_state.shared_waiting=0;
if(last_reader)
{
if(new_state.exclusive_waiting)
{
--new_state.exclusive_waiting;
new_state.exclusive_waiting_blocked=false;
}
new_state.shared_waiting=0;
}

state_data const current_state=interlocked_compare_exchange(&state,new_state,old_state);
Expand Down

0 comments on commit 205a1d7

Please sign in to comment.