Ticket #5423: thread.patch
File thread.patch, 1.5 KB (added by , 12 years ago) |
---|
-
boost/thread/locks.hpp
1478 1478 range_lock_guard(Iterator begin_,Iterator end_): 1479 1479 begin(begin_),end(end_) 1480 1480 { 1481 lock(begin,end);1481 boost::lock(begin,end); 1482 1482 } 1483 1483 1484 1484 void release() … … 1510 1510 { 1511 1511 return begin; 1512 1512 } 1513 Iterator const failed= try_lock(++begin,end);1513 Iterator const failed=boost::try_lock(++begin,end); 1514 1514 if(failed==end) 1515 1515 { 1516 1516 guard.release(); … … 1543 1543 if(start_with_begin) 1544 1544 { 1545 1545 begin_lock.lock(); 1546 Iterator const failed_lock= try_lock(next,end);1546 Iterator const failed_lock=boost::try_lock(next,end); 1547 1547 if(failed_lock==end) 1548 1548 { 1549 1549 begin_lock.release(); … … 1557 1557 detail::range_lock_guard<Iterator> guard(next,end); 1558 1558 if(begin_lock.try_lock()) 1559 1559 { 1560 Iterator const failed_lock= try_lock(second,next);1560 Iterator const failed_lock=boost::try_lock(second,next); 1561 1561 if(failed_lock==next) 1562 1562 { 1563 1563 begin_lock.release();