@@ -171,7 +171,7 @@ namespace boost
171171 boost::this_thread::disable_interruption do_not_disturb;
172172#endif
173173 boost::unique_lock<boost::mutex> lk (state_change);
174- shared_cond.wait (lk, boost::bind (&state_data::can_lock_shared, boost::ref ( state) ));
174+ shared_cond.wait (lk, boost::bind (&state_data::can_lock_shared, & state));
175175 state.lock_shared ();
176176 }
177177
@@ -194,7 +194,7 @@ namespace boost
194194 boost::this_thread::disable_interruption do_not_disturb;
195195#endif
196196 boost::unique_lock<boost::mutex> lk (state_change);
197- if (!shared_cond.timed_wait (lk, timeout, boost::bind (&state_data::can_lock_shared, boost::ref ( state) )))
197+ if (!shared_cond.timed_wait (lk, timeout, boost::bind (&state_data::can_lock_shared, & state)))
198198 {
199199 return false ;
200200 }
@@ -209,7 +209,7 @@ namespace boost
209209 boost::this_thread::disable_interruption do_not_disturb;
210210#endif
211211 boost::unique_lock<boost::mutex> lk (state_change);
212- if (!shared_cond.timed_wait (lk, relative_time, boost::bind (&state_data::can_lock_shared, boost::ref ( state) )))
212+ if (!shared_cond.timed_wait (lk, relative_time, boost::bind (&state_data::can_lock_shared, & state)))
213213 {
214214 return false ;
215215 }
@@ -230,7 +230,7 @@ namespace boost
230230 boost::this_thread::disable_interruption do_not_disturb;
231231#endif
232232 boost::unique_lock<boost::mutex> lk (state_change);
233- if (!shared_cond.wait_until (lk, abs_time, boost::bind (&state_data::can_lock_shared, boost::ref ( state) )))
233+ if (!shared_cond.wait_until (lk, abs_time, boost::bind (&state_data::can_lock_shared, & state)))
234234 {
235235 return false ;
236236 }
@@ -270,7 +270,7 @@ namespace boost
270270#endif
271271 boost::unique_lock<boost::mutex> lk (state_change);
272272 state.exclusive_waiting_blocked =true ;
273- exclusive_cond.wait (lk, boost::bind (&state_data::can_lock, boost::ref ( state) ));
273+ exclusive_cond.wait (lk, boost::bind (&state_data::can_lock, & state));
274274 state.exclusive =true ;
275275 }
276276
@@ -282,7 +282,7 @@ namespace boost
282282#endif
283283 boost::unique_lock<boost::mutex> lk (state_change);
284284 state.exclusive_waiting_blocked =true ;
285- if (!exclusive_cond.timed_wait (lk, timeout, boost::bind (&state_data::can_lock, boost::ref ( state) )))
285+ if (!exclusive_cond.timed_wait (lk, timeout, boost::bind (&state_data::can_lock, & state)))
286286 {
287287 state.exclusive_waiting_blocked =false ;
288288 release_waiters ();
@@ -300,7 +300,7 @@ namespace boost
300300#endif
301301 boost::unique_lock<boost::mutex> lk (state_change);
302302 state.exclusive_waiting_blocked =true ;
303- if (!exclusive_cond.timed_wait (lk, relative_time, boost::bind (&state_data::can_lock, boost::ref ( state) )))
303+ if (!exclusive_cond.timed_wait (lk, relative_time, boost::bind (&state_data::can_lock, & state)))
304304 {
305305 state.exclusive_waiting_blocked =false ;
306306 release_waiters ();
@@ -324,7 +324,7 @@ namespace boost
324324#endif
325325 boost::unique_lock<boost::mutex> lk (state_change);
326326 state.exclusive_waiting_blocked =true ;
327- if (!exclusive_cond.wait_until (lk, abs_time, boost::bind (&state_data::can_lock, boost::ref ( state) )))
327+ if (!exclusive_cond.wait_until (lk, abs_time, boost::bind (&state_data::can_lock, & state)))
328328 {
329329 state.exclusive_waiting_blocked =false ;
330330 release_waiters ();
@@ -362,7 +362,7 @@ namespace boost
362362 boost::this_thread::disable_interruption do_not_disturb;
363363#endif
364364 boost::unique_lock<boost::mutex> lk (state_change);
365- shared_cond.wait (lk, boost::bind (&state_data::can_lock_upgrade, boost::ref ( state) ));
365+ shared_cond.wait (lk, boost::bind (&state_data::can_lock_upgrade, & state));
366366 state.lock_shared ();
367367 state.upgrade =true ;
368368 }
@@ -374,7 +374,7 @@ namespace boost
374374 boost::this_thread::disable_interruption do_not_disturb;
375375#endif
376376 boost::unique_lock<boost::mutex> lk (state_change);
377- if (!shared_cond.timed_wait (lk, timeout, boost::bind (&state_data::can_lock_upgrade, boost::ref ( state) )))
377+ if (!shared_cond.timed_wait (lk, timeout, boost::bind (&state_data::can_lock_upgrade, & state)))
378378 {
379379 return false ;
380380 }
@@ -390,7 +390,7 @@ namespace boost
390390 boost::this_thread::disable_interruption do_not_disturb;
391391#endif
392392 boost::unique_lock<boost::mutex> lk (state_change);
393- if (!shared_cond.timed_wait (lk, relative_time, boost::bind (&state_data::can_lock_upgrade, boost::ref ( state) )))
393+ if (!shared_cond.timed_wait (lk, relative_time, boost::bind (&state_data::can_lock_upgrade, & state)))
394394 {
395395 return false ;
396396 }
@@ -412,7 +412,7 @@ namespace boost
412412 boost::this_thread::disable_interruption do_not_disturb;
413413#endif
414414 boost::unique_lock<boost::mutex> lk (state_change);
415- if (!shared_cond.wait_until (lk, abs_time, boost::bind (&state_data::can_lock_upgrade, boost::ref ( state) )))
415+ if (!shared_cond.wait_until (lk, abs_time, boost::bind (&state_data::can_lock_upgrade, & state)))
416416 {
417417 return false ;
418418 }
@@ -457,7 +457,7 @@ namespace boost
457457 boost::unique_lock<boost::mutex> lk (state_change);
458458 state.assert_lock_upgraded ();
459459 state.unlock_shared ();
460- upgrade_cond.wait (lk, boost::bind (&state_data::no_shared, boost::ref ( state) ));
460+ upgrade_cond.wait (lk, boost::bind (&state_data::no_shared, & state));
461461 state.upgrade =false ;
462462 state.exclusive =true ;
463463 state.assert_locked ();
@@ -511,7 +511,7 @@ namespace boost
511511#endif
512512 boost::unique_lock<boost::mutex> lk (state_change);
513513 state.assert_lock_upgraded ();
514- if (!shared_cond.wait_until (lk, abs_time, boost::bind (&state_data::one_shared, boost::ref ( state) )))
514+ if (!shared_cond.wait_until (lk, abs_time, boost::bind (&state_data::one_shared, & state)))
515515 {
516516 return false ;
517517 }
@@ -569,7 +569,7 @@ namespace boost
569569#endif
570570 boost::unique_lock<boost::mutex> lk (state_change);
571571 state.assert_lock_shared ();
572- if (!shared_cond.wait_until (lk, abs_time, boost::bind (&state_data::one_shared, boost::ref ( state) )))
572+ if (!shared_cond.wait_until (lk, abs_time, boost::bind (&state_data::one_shared, & state)))
573573 {
574574 return false ;
575575 }
@@ -623,7 +623,7 @@ namespace boost
623623#endif
624624 boost::unique_lock<boost::mutex> lk (state_change);
625625 state.assert_lock_shared ();
626- if (!exclusive_cond.wait_until (lk, abs_time, boost::bind (&state_data::can_lock_upgrade, boost::ref ( state) )))
626+ if (!exclusive_cond.wait_until (lk, abs_time, boost::bind (&state_data::can_lock_upgrade, & state)))
627627 {
628628 return false ;
629629 }
0 commit comments