Lines Matching refs:m2
24 unsigned try_lock_internal(MutexType1& m1, MutexType2& m2) in try_lock_internal() argument
31 if (!m2.try_lock()) in try_lock_internal()
40 unsigned try_lock_internal(MutexType1& m1, MutexType2& m2, MutexType3& m3) in try_lock_internal() argument
47 if (unsigned const failed_lock=try_lock_internal(m2,m3)) in try_lock_internal()
56 unsigned try_lock_internal(MutexType1& m1, MutexType2& m2, MutexType3& m3, MutexType4& m4) in try_lock_internal() argument
63 if (unsigned const failed_lock=try_lock_internal(m2,m3,m4)) in try_lock_internal()
72 …unsigned try_lock_internal(MutexType1& m1, MutexType2& m2, MutexType3& m3, MutexType4& m4, MutexTy… in try_lock_internal() argument
79 if (unsigned const failed_lock=try_lock_internal(m2,m3,m4,m5)) in try_lock_internal()
88 unsigned lock_helper(MutexType1& m1, MutexType2& m2) in lock_helper() argument
91 if (!m2.try_lock()) in lock_helper()
100 unsigned lock_helper(MutexType1& m1, MutexType2& m2, MutexType3& m3) in lock_helper() argument
103 if (unsigned const failed_lock=try_lock_internal(m2,m3)) in lock_helper()
112 unsigned lock_helper(MutexType1& m1, MutexType2& m2, MutexType3& m3, MutexType4& m4) in lock_helper() argument
115 if (unsigned const failed_lock=try_lock_internal(m2,m3,m4)) in lock_helper()
124 …unsigned lock_helper(MutexType1& m1, MutexType2& m2, MutexType3& m3, MutexType4& m4, MutexType5& m… in lock_helper() argument
127 if (unsigned const failed_lock=try_lock_internal(m2,m3,m4,m5)) in lock_helper()
144 void lock_impl(MutexType1& m1, MutexType2& m2, is_mutex_type_wrapper<true> ) in lock_impl() argument
153 lock_first = detail::lock_helper(m1, m2); in lock_impl()
157 lock_first = detail::lock_helper(m2, m1); in lock_impl()
170 void lock(MutexType1& m1, MutexType2& m2) in lock() argument
172 detail::lock_impl(m1, m2, detail::is_mutex_type_wrapper<is_mutex_type<MutexType1>::value>()); in lock()
176 void lock(const MutexType1& m1, MutexType2& m2) in lock() argument
178 detail::lock_impl(m1, m2, detail::is_mutex_type_wrapper<is_mutex_type<MutexType1>::value>()); in lock()
182 void lock(MutexType1& m1, const MutexType2& m2) in lock() argument
184 detail::lock_impl(m1, m2, detail::is_mutex_type_wrapper<is_mutex_type<MutexType1>::value>()); in lock()
188 void lock(const MutexType1& m1, const MutexType2& m2) in lock() argument
190 detail::lock_impl(m1, m2, detail::is_mutex_type_wrapper<is_mutex_type<MutexType1>::value>()); in lock()
194 void lock(MutexType1& m1, MutexType2& m2, MutexType3& m3) in lock() argument
203 lock_first = detail::lock_helper(m1, m2, m3); in lock()
207 lock_first = detail::lock_helper(m2, m3, m1); in lock()
212 lock_first = detail::lock_helper(m3, m1, m2); in lock()
221 void lock(MutexType1& m1, MutexType2& m2, MutexType3& m3, MutexType4& m4) in lock() argument
230 lock_first = detail::lock_helper(m1, m2, m3, m4); in lock()
234 lock_first = detail::lock_helper(m2, m3, m4, m1); in lock()
239 lock_first = detail::lock_helper(m3, m4, m1, m2); in lock()
244 lock_first = detail::lock_helper(m4, m1, m2, m3); in lock()
253 void lock(MutexType1& m1, MutexType2& m2, MutexType3& m3, MutexType4& m4, MutexType5& m5) in lock() argument
262 lock_first = detail::lock_helper(m1, m2, m3, m4, m5); in lock()
266 lock_first = detail::lock_helper(m2, m3, m4, m5, m1); in lock()
271 lock_first = detail::lock_helper(m3, m4, m5, m1, m2); in lock()
276 lock_first = detail::lock_helper(m4, m5, m1, m2, m3); in lock()
281 lock_first = detail::lock_helper(m5, m1, m2, m3, m4); in lock()
304 int try_lock_impl(MutexType1& m1, MutexType2& m2, is_mutex_type_wrapper<true> ) in try_lock_impl() argument
306 return ((int) detail::try_lock_internal(m1, m2)) - 1; in try_lock_impl()
314 typename detail::try_lock_impl_return<MutexType1>::type try_lock(MutexType1& m1, MutexType2& m2) in try_lock() argument
316 …return detail::try_lock_impl(m1, m2, detail::is_mutex_type_wrapper<is_mutex_type<MutexType1>::valu… in try_lock()
320 …ename detail::try_lock_impl_return<MutexType1>::type try_lock(const MutexType1& m1, MutexType2& m2) in try_lock() argument
322 …return detail::try_lock_impl(m1, m2, detail::is_mutex_type_wrapper<is_mutex_type<MutexType1>::valu… in try_lock()
326 …ename detail::try_lock_impl_return<MutexType1>::type try_lock(MutexType1& m1, const MutexType2& m2) in try_lock() argument
328 …return detail::try_lock_impl(m1, m2, detail::is_mutex_type_wrapper<is_mutex_type<MutexType1>::valu… in try_lock()
332 …detail::try_lock_impl_return<MutexType1>::type try_lock(const MutexType1& m1, const MutexType2& m2) in try_lock() argument
334 …return detail::try_lock_impl(m1, m2, detail::is_mutex_type_wrapper<is_mutex_type<MutexType1>::valu… in try_lock()
338 int try_lock(MutexType1& m1, MutexType2& m2, MutexType3& m3) in try_lock() argument
340 return ((int) detail::try_lock_internal(m1, m2, m3)) - 1; in try_lock()
344 int try_lock(MutexType1& m1, MutexType2& m2, MutexType3& m3, MutexType4& m4) in try_lock() argument
346 return ((int) detail::try_lock_internal(m1, m2, m3, m4)) - 1; in try_lock()
350 int try_lock(MutexType1& m1, MutexType2& m2, MutexType3& m3, MutexType4& m4, MutexType5& m5) in try_lock() argument
352 return ((int) detail::try_lock_internal(m1, m2, m3, m4, m5)) - 1; in try_lock()