add core::Mutex inheriting data::Wrap<nf7::Mutex>

This commit is contained in:
falsycat 2023-08-20 11:30:13 +09:00
parent c274f35265
commit 071f9e22be
2 changed files with 18 additions and 0 deletions

View File

@ -25,6 +25,7 @@ target_sources(nf7_core
uv/parallelism.hh
clock.hh
logger.hh
mutex.hh
version.hh
)

17
core/mutex.hh Normal file
View File

@ -0,0 +1,17 @@
// No copyright
#pragma once
#include "iface/common/mutex.hh"
#include "iface/data/wrap.hh"
namespace nf7::core {
class Mutex : public data::Wrap<nf7::Mutex> {
public:
Mutex() : Wrap("nf7::core::Mutex", mtx_) { }
private:
nf7::Mutex mtx_;
};
} // namespace nf7::core