kern: SendSyncRequestLight, ReplyAndReceiveLight
This commit is contained in:
@@ -34,6 +34,9 @@ namespace ams::kern {
|
||||
ClientClosed = 2,
|
||||
ServerClosed = 3,
|
||||
};
|
||||
public:
|
||||
static constexpr size_t DataSize = sizeof(u32) * 7;
|
||||
static constexpr u32 ReplyFlag = (1u << (BITSIZEOF(u32) - 1));
|
||||
private:
|
||||
KLightServerSession server;
|
||||
KLightClientSession client;
|
||||
|
||||
@@ -410,6 +410,9 @@ namespace ams::kern {
|
||||
void ClearCancellable() { this->cancellable = false; }
|
||||
void SetCancellable() { this->cancellable = true; }
|
||||
|
||||
constexpr u32 *GetLightSessionData() const { return this->light_ipc_data; }
|
||||
constexpr void SetLightSessionData(u32 *data) { this->light_ipc_data = data; }
|
||||
|
||||
bool HasWaiters() const { return !this->waiter_list.empty(); }
|
||||
|
||||
constexpr s64 GetLastScheduledTick() const { return this->last_scheduled_tick; }
|
||||
|
||||
Reference in New Issue
Block a user