mirror of
https://github.com/skyline-emu/skyline.git
synced 2024-06-02 19:28:47 +02:00
c005d7df74
What was added: * Framebuffer * NativeActivity * NV Services * IOCTL Handler * NV Devices: * * /dev/nvmap - 0xC0080101, 0xC0080103, 0xC0200104, 0xC0180105, 0xC00C0109, 0xC008010E * * /dev/nvhost-as-gpu * * /dev/nvhost-channel - 0x40044801, 0xC0104809, 0xC010480B, 0xC018480C, 0x4004480D, 0xC020481A, 0x40084714 * * /dev/nvhost-ctrl * * /dev/nvhost-ctrl-gpu - 0x80044701, 0x80284702, 0xC0184706, 0xC0B04705, 0x80084714 * SVCs: * * SetMemoryAttribute * * CreateTransferMemory * * ResetSignal * * GetSystemTick * Addition of Compact Logger What was fixed: * SVCs: * * SetHeapSize * * SetMemoryAttribute * * QueryMemory * A release build would not set CMAKE_BUILD_TYPE to "RELEASE" * The logger code was simplified
36 lines
1.1 KiB
C++
36 lines
1.1 KiB
C++
#pragma once
|
|
|
|
#include <common.h>
|
|
#include "KObject.h"
|
|
|
|
namespace skyline::kernel::type {
|
|
/**
|
|
* @brief KSyncObject holds the state of a waitable object
|
|
*/
|
|
class KSyncObject : public KObject {
|
|
public:
|
|
bool signalled{false}; //!< If the current object is signalled (Used by KEvent as it stays signalled till svcClearEvent or svcClearSignal is called)
|
|
/**
|
|
* @brief This holds information about a specific thread that's waiting on this object
|
|
*/
|
|
struct threadInfo {
|
|
pid_t process; //!< The PID of the waiting thread
|
|
handle_t handle; //!< The handle in the process's handle table
|
|
|
|
threadInfo(pid_t process, handle_t handle);
|
|
};
|
|
std::vector<threadInfo> waitThreads; //!< A vector of threads waiting on this object
|
|
|
|
/**
|
|
* @param state The state of the device
|
|
* @param type The type of the object
|
|
*/
|
|
KSyncObject(const DeviceState &state, skyline::kernel::type::KType type);
|
|
|
|
/**
|
|
* @brief A function for calling when a particular KSyncObject is signalled
|
|
*/
|
|
virtual void Signal();
|
|
};
|
|
}
|