mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-01-08 09:40:23 +01:00
27 lines
337 B
C
27 lines
337 B
C
#pragma once
|
|
#include "SC_Mutex.h"
|
|
|
|
struct sys_cond_attribute
|
|
{
|
|
be_t<u32> pshared;
|
|
be_t<u64> ipc_key;
|
|
be_t<int> flags;
|
|
union
|
|
{
|
|
char name[8];
|
|
u64 name_u64;
|
|
};
|
|
};
|
|
|
|
struct Cond
|
|
{
|
|
Mutex* mutex; // associated with mutex
|
|
SMutex signal;
|
|
SleepQueue m_queue;
|
|
|
|
Cond(Mutex* mutex, u64 name)
|
|
: mutex(mutex)
|
|
, m_queue(name)
|
|
{
|
|
}
|
|
}; |