1#ifndef NEFORCE_CORE_ASYNC_NAMED_MUTEX_HPP__
2#define NEFORCE_CORE_ASYNC_NAMED_MUTEX_HPP__
13NEFORCE_BEGIN_NAMESPACE__
35 using native_handle_type = _NEFORCE native_handle_type;
38#ifdef NEFORCE_PLATFORM_WINDOWS
39 native_handle_type handle_{
nullptr};
42 void* mapped_addr_{
nullptr};
99 NEFORCE_NODISCARD const
string&
name() const noexcept {
return name_; }
119NEFORCE_END_NAMESPACE__
const string & name() const noexcept
获取互斥锁名称
named_mutex() noexcept=default
默认构造函数
bool is_valid() const noexcept
检查是否有效
static bool remove(const string &name)
删除命名互斥锁