更新接口
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
#pragma once
|
||||
#include <concepts>
|
||||
namespace adminive {
|
||||
struct No_Lock {
|
||||
void lock() noexcept {}
|
||||
bool try_lock() noexcept {
|
||||
return true;
|
||||
}
|
||||
void unlock() noexcept {}
|
||||
};
|
||||
template <class T>
|
||||
concept Basic_Lock = std::default_initializable<T> && requires(T& value) {
|
||||
value.lock();
|
||||
value.unlock();
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user