mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-03-01 11:04:50 +01:00
31 lines
447 B
C++
31 lines
447 B
C++
#pragma once
|
|
|
|
enum
|
|
{
|
|
SYS_SYNC_WAITER_SINGLE = 0x10000,
|
|
SYS_SYNC_WAITER_MULTIPLE = 0x20000,
|
|
};
|
|
|
|
struct sys_event_flag_attr
|
|
{
|
|
be_t<u32> protocol;
|
|
be_t<u32> pshared;
|
|
be_t<u64> ipc_key;
|
|
be_t<int> flags;
|
|
be_t<int> type;
|
|
char name[8];
|
|
};
|
|
|
|
struct event_flag
|
|
{
|
|
std::atomic<u64> flags;
|
|
const u32 m_protocol;
|
|
const int m_type;
|
|
|
|
event_flag(u64 pattern, u32 protocol, int type)
|
|
: flags(pattern)
|
|
, m_protocol(protocol)
|
|
, m_type(type)
|
|
{
|
|
}
|
|
}; |