old-nall/windows/shared-memory.hpp

28 lines
728 B
C++
Raw Normal View History

2016-05-15 10:42:10 +00:00
#pragma once
namespace nall {
struct shared_memory {
shared_memory() = default;
shared_memory(const shared_memory&) = delete;
auto operator=(const shared_memory&) -> shared_memory& = delete;
~shared_memory() {
reset();
}
explicit operator bool() const { return false; }
auto empty() const -> bool { return true; }
auto size() const -> uint { return 0; }
auto acquired() const -> bool { return false; }
auto acquire() -> uint8* { return nullptr; }
auto release() -> void {}
auto reset() -> void {}
auto create(const string& name, uint size) -> bool { return false; }
auto remove() -> void {}
auto open(const string& name, uint size) -> bool { return false; }
auto close() -> void {}
};
}