add core::Mutex inheriting data::Wrap<nf7::Mutex>
This commit is contained in:
parent
c274f35265
commit
071f9e22be
@ -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
17
core/mutex.hh
Normal 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
|
Loading…
x
Reference in New Issue
Block a user