mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-01-06 00:30:18 +01:00
ipmi: fixed respond sync, get message, try get message, try send message event: detach event emitter from file signals: basic implementation linker: fixed zero symbol relocation, fixed exec relocation shared_cv/mutex: implement eintr response support shared_cv: fixed possible loop instead of wait ipmi: implement invoke async, respond async, get result, get client app id, client get name rpcsx-os: add safemode flag
22 lines
596 B
C++
22 lines
596 B
C++
#pragma once
|
|
|
|
#include "io-device.hpp"
|
|
#include "iodev/MBusEvent.hpp"
|
|
#include "orbis/utils/SharedCV.hpp"
|
|
#include "orbis/utils/SharedMutex.hpp"
|
|
|
|
|
|
struct MBusDevice : IoDevice {
|
|
orbis::shared_mutex mtx;
|
|
orbis::shared_cv cv;
|
|
orbis::kdeque<MBusEvent> events;
|
|
orbis::Ref<orbis::EventEmitter> eventEmitter =
|
|
orbis::knew<orbis::EventEmitter>();
|
|
|
|
orbis::ErrorCode open(orbis::Ref<orbis::File> *file, const char *path,
|
|
std::uint32_t flags, std::uint32_t mode,
|
|
orbis::Thread *thread) override;
|
|
|
|
void emitEvent(const MBusEvent &event);
|
|
};
|