Ticket #3122: locks.hpp.patch
File locks.hpp.patch, 1.1 KB (added by , 13 years ago) |
---|
-
boost/thread/locks.hpp
422 422 { 423 423 lhs.swap(rhs); 424 424 } 425 #e lse425 #endif 426 426 template<typename Mutex> 427 427 void swap(unique_lock<Mutex>& lhs,unique_lock<Mutex>& rhs) 428 428 { 429 429 lhs.swap(rhs); 430 430 } 431 #endif432 431 433 432 #ifdef BOOST_HAS_RVALUE_REFS 434 433 template<typename Mutex> … … 635 634 { 636 635 lhs.swap(rhs); 637 636 } 638 #e lse637 #endif 639 638 template<typename Mutex> 640 639 void swap(shared_lock<Mutex>& lhs,shared_lock<Mutex>& rhs) 641 640 { 642 641 lhs.swap(rhs); 643 642 } 644 #endif645 643 646 644 template<typename Mutex> 647 645 class upgrade_lock … … 954 952 { 955 953 lhs.swap(rhs); 956 954 } 957 #e lse955 #endif 958 956 template<typename Mutex> 959 957 void swap(try_lock_wrapper<Mutex>& lhs,try_lock_wrapper<Mutex>& rhs) 960 958 { 961 959 lhs.swap(rhs); 962 960 } 963 #endif964 961 965 962 template<typename MutexType1,typename MutexType2> 966 963 unsigned try_lock_internal(MutexType1& m1,MutexType2& m2)