#include "components/named_system_lock/lock.h"
#include <aio.h>
#include <fcntl.h>
#include <sys/mman.h>
#include <sys/stat.h>
#include <unistd.h>
#include <memory>
#include <string>
#include <utility>
#include "base/files/file.h"
#include "base/logging.h"
#include "base/memory/ptr_util.h"
#include "base/memory/raw_ptr_exclusion.h"
#include "base/time/time.h"
namespace named_system_lock {
class ScopedLockImpl { … };
std::unique_ptr<ScopedLockImpl> ScopedLockImpl::TryCreate(
const std::string& shared_mem_name,
base::TimeDelta timeout) { … }
ScopedLockImpl::~ScopedLockImpl() { … }
ScopedLock::ScopedLock(std::unique_ptr<ScopedLockImpl> impl)
: … { … }
ScopedLock::~ScopedLock() = default;
std::unique_ptr<ScopedLock> ScopedLock::Create(const std::string& name,
base::TimeDelta timeout) { … }
}