mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-04-06 06:55:09 +00:00
[orbis-kernel] Implement shared_cv
Shared (IPC-ready) condition variable. Relicensed and improved from RPCS3.
This commit is contained in:
parent
c269d23665
commit
5bb820084e
5 changed files with 171 additions and 0 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue