mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2026-03-08 00:24:38 +00:00
28 lines
526 B
C++
28 lines
526 B
C++
#pragma once
|
|
|
|
#include <mesosphere/interfaces/IWork.hpp>
|
|
#include <mesosphere/core/KAutoObject.hpp>
|
|
|
|
namespace mesosphere
|
|
{
|
|
|
|
class KWorkQueue final {
|
|
public:
|
|
|
|
void AddWork(IWork &work);
|
|
void Initialize();
|
|
|
|
void HandleWorkQueue();
|
|
|
|
KWorkQueue(const KWorkQueue &) = delete;
|
|
KWorkQueue(KWorkQueue &&) = delete;
|
|
KWorkQueue &operator=(const KWorkQueue &) = delete;
|
|
KWorkQueue &operator=(KWorkQueue &&) = delete;
|
|
|
|
private:
|
|
WorkSList workQueue{};
|
|
SharedPtr<KThread> handlerThread{};
|
|
};
|
|
|
|
}
|