Browse Source

删除unlock_awaiter的一个可能导致误用的构造函数

tags/v2.9.7
tearshark 4 years ago
parent
commit
c6e6c36cfc
1 changed files with 0 additions and 8 deletions
  1. 0
    8
      librf/src/mutex_v2.inl

+ 0
- 8
librf/src/mutex_v2.inl View File

@@ -491,14 +491,6 @@ RESUMEF_NS
{
mutex_t::_MutexAwaitAssembleT _MAA;

//此函数,应该在try_lock()获得锁后使用
//或者在协程里,由awaiter使用
template<class... U>
scoped_unlock_t(void* sch, U&&... mtxs)
: _MAA(sch, std::forward<U>(mtxs)...)
{
detail::scoped_lock_range_lock_impl::_Lock_range(_MAA);
}
template<class... U>
scoped_unlock_t(std::adopt_lock_t, void* sch, U&&... mtxs)
: _MAA(sch, std::forward<U>(mtxs)...)

Loading…
Cancel
Save