Ticket #5423: thread.patch

File thread.patch, 1.5 KB (added by Chris Jefferson, 12 years ago)

Thread patch

  • boost/thread/locks.hpp

     
    14781478            range_lock_guard(Iterator begin_,Iterator end_):
    14791479                begin(begin_),end(end_)
    14801480            {
    1481                 lock(begin,end);
     1481                boost::lock(begin,end);
    14821482            }
    14831483           
    14841484            void release()
     
    15101510            {
    15111511                return begin;
    15121512            }
    1513             Iterator const failed=try_lock(++begin,end);
     1513            Iterator const failed=boost::try_lock(++begin,end);
    15141514            if(failed==end)
    15151515            {
    15161516                guard.release();
     
    15431543                if(start_with_begin)
    15441544                {
    15451545                    begin_lock.lock();
    1546                     Iterator const failed_lock=try_lock(next,end);
     1546                    Iterator const failed_lock=boost::try_lock(next,end);
    15471547                    if(failed_lock==end)
    15481548                    {
    15491549                        begin_lock.release();
     
    15571557                    detail::range_lock_guard<Iterator> guard(next,end);
    15581558                    if(begin_lock.try_lock())
    15591559                    {
    1560                         Iterator const failed_lock=try_lock(second,next);
     1560                        Iterator const failed_lock=boost::try_lock(second,next);
    15611561                        if(failed_lock==next)
    15621562                        {
    15631563                            begin_lock.release();