[orbis-kernel] Implement shared_cv

Shared (IPC-ready) condition variable.
Relicensed and improved from RPCS3.
This commit is contained in:
Ivan Chikish 2023-07-06 16:11:19 +03:00
parent c269d23665
commit 5bb820084e
5 changed files with 171 additions and 0 deletions

View file

@ -101,6 +101,9 @@ public:
// Check whether can immediately obtain a shared (reader) lock
bool is_lockable() const { return m_value.load() < c_one - 1; }
// For CV
unsigned lock_forced();
};
// Simplified shared (reader) lock implementation.