@@ -171,7 +171,7 @@ namespace boost
171
171
boost::this_thread::disable_interruption do_not_disturb;
172
172
#endif
173
173
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));
175
175
state.lock_shared ();
176
176
}
177
177
@@ -194,7 +194,7 @@ namespace boost
194
194
boost::this_thread::disable_interruption do_not_disturb;
195
195
#endif
196
196
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)))
198
198
{
199
199
return false ;
200
200
}
@@ -209,7 +209,7 @@ namespace boost
209
209
boost::this_thread::disable_interruption do_not_disturb;
210
210
#endif
211
211
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)))
213
213
{
214
214
return false ;
215
215
}
@@ -230,7 +230,7 @@ namespace boost
230
230
boost::this_thread::disable_interruption do_not_disturb;
231
231
#endif
232
232
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)))
234
234
{
235
235
return false ;
236
236
}
@@ -270,7 +270,7 @@ namespace boost
270
270
#endif
271
271
boost::unique_lock<boost::mutex> lk (state_change);
272
272
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));
274
274
state.exclusive =true ;
275
275
}
276
276
@@ -282,7 +282,7 @@ namespace boost
282
282
#endif
283
283
boost::unique_lock<boost::mutex> lk (state_change);
284
284
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)))
286
286
{
287
287
state.exclusive_waiting_blocked =false ;
288
288
release_waiters ();
@@ -300,7 +300,7 @@ namespace boost
300
300
#endif
301
301
boost::unique_lock<boost::mutex> lk (state_change);
302
302
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)))
304
304
{
305
305
state.exclusive_waiting_blocked =false ;
306
306
release_waiters ();
@@ -324,7 +324,7 @@ namespace boost
324
324
#endif
325
325
boost::unique_lock<boost::mutex> lk (state_change);
326
326
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)))
328
328
{
329
329
state.exclusive_waiting_blocked =false ;
330
330
release_waiters ();
@@ -362,7 +362,7 @@ namespace boost
362
362
boost::this_thread::disable_interruption do_not_disturb;
363
363
#endif
364
364
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));
366
366
state.lock_shared ();
367
367
state.upgrade =true ;
368
368
}
@@ -374,7 +374,7 @@ namespace boost
374
374
boost::this_thread::disable_interruption do_not_disturb;
375
375
#endif
376
376
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)))
378
378
{
379
379
return false ;
380
380
}
@@ -390,7 +390,7 @@ namespace boost
390
390
boost::this_thread::disable_interruption do_not_disturb;
391
391
#endif
392
392
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)))
394
394
{
395
395
return false ;
396
396
}
@@ -412,7 +412,7 @@ namespace boost
412
412
boost::this_thread::disable_interruption do_not_disturb;
413
413
#endif
414
414
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)))
416
416
{
417
417
return false ;
418
418
}
@@ -457,7 +457,7 @@ namespace boost
457
457
boost::unique_lock<boost::mutex> lk (state_change);
458
458
state.assert_lock_upgraded ();
459
459
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));
461
461
state.upgrade =false ;
462
462
state.exclusive =true ;
463
463
state.assert_locked ();
@@ -511,7 +511,7 @@ namespace boost
511
511
#endif
512
512
boost::unique_lock<boost::mutex> lk (state_change);
513
513
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)))
515
515
{
516
516
return false ;
517
517
}
@@ -569,7 +569,7 @@ namespace boost
569
569
#endif
570
570
boost::unique_lock<boost::mutex> lk (state_change);
571
571
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)))
573
573
{
574
574
return false ;
575
575
}
@@ -623,7 +623,7 @@ namespace boost
623
623
#endif
624
624
boost::unique_lock<boost::mutex> lk (state_change);
625
625
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)))
627
627
{
628
628
return false ;
629
629
}
0 commit comments