Browse Source

兼容VS2017

tags/v2.9.7
tearshark 4 years ago
parent
commit
0b0b41a42a
1 changed files with 3 additions and 3 deletions
  1. 3
    3
      librf/src/mutex_v2.h

+ 3
- 3
librf/src/mutex_v2.h View File





template<class... _Mtxs template<class... _Mtxs
, typename = std::enable_if_t<std::conjunction_v<std::is_same<std::remove_cvref_t<_Mtxs>, mutex_t>...>>
, typename = std::enable_if_t<std::conjunction_v<std::is_same<remove_cvref_t<_Mtxs>, mutex_t>...>>
> >
static future_t<scoped_unlock_t<_Mtxs...>> lock(_Mtxs&... mtxs); static future_t<scoped_unlock_t<_Mtxs...>> lock(_Mtxs&... mtxs);




template<class... _Mtxs template<class... _Mtxs
, typename = std::enable_if_t<std::conjunction_v<std::is_same<std::remove_cvref_t<_Mtxs>, mutex_t>...>>
, typename = std::enable_if_t<std::conjunction_v<std::is_same<remove_cvref_t<_Mtxs>, mutex_t>...>>
> >
static scoped_unlock_t<_Mtxs...> lock(void* unique_address, _Mtxs&... mtxs); static scoped_unlock_t<_Mtxs...> lock(void* unique_address, _Mtxs&... mtxs);


template<class... _Mtxs template<class... _Mtxs
, typename = std::enable_if_t<std::conjunction_v<std::is_same<std::remove_cvref_t<_Mtxs>, mutex_t>...>>
, typename = std::enable_if_t<std::conjunction_v<std::is_same<remove_cvref_t<_Mtxs>, mutex_t>...>>
> >
static void unlock(void* unique_address, _Mtxs&... mtxs); static void unlock(void* unique_address, _Mtxs&... mtxs);



Loading…
Cancel
Save