/*
 * Copyright © 2020-2026 Pierrick Caillon <pierrick.caillon+zipdirfs@megami.fr>
 */
#include "ZipDirFs/Utilities/MutexLocker.h"
#include "StateReporter.h"

namespace ZipDirFs::Utilities
{
	MutexLocker::MutexLocker() { id = buildId("ML", reinterpret_cast<std::uint64_t>(reinterpret_cast<void*>(&mutex)), 6); }
	std::unique_lock<std::mutex> MutexLocker::lock() { return std::unique_lock(mutex); }
	MutexLocker::operator const std::string&() const { return id; }
} // namespace ZipDirFs::Utilities
