#pragma once enum { SYS_SYNC_WAITER_SINGLE = 0x10000, SYS_SYNC_WAITER_MULTIPLE = 0x20000, }; struct sys_event_flag_attr { be_t protocol; be_t pshared; be_t ipc_key; be_t flags; be_t type; char name[8]; }; struct event_flag { std::atomic 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) { } };