mirror of https://github.com/bsnes-emu/bsnes.git
28 lines
728 B
C++
28 lines
728 B
C++
#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 {}
|
|
};
|
|
|
|
}
|