2022-04-23 10:59:50 +02:00
|
|
|
// SPDX-FileCopyrightText: Copyright 2020 yuzu Emulator Project
|
|
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
2020-12-10 06:27:05 +01:00
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <memory>
|
2020-12-29 10:06:39 +01:00
|
|
|
#include <string>
|
2020-12-10 06:27:05 +01:00
|
|
|
|
|
|
|
namespace Kernel {
|
|
|
|
|
|
|
|
class HLERequestContext;
|
|
|
|
class KernelCore;
|
2021-04-14 02:48:37 +02:00
|
|
|
class KSession;
|
2022-10-16 07:53:56 +02:00
|
|
|
class SessionRequestManager;
|
2020-12-10 06:27:05 +01:00
|
|
|
|
|
|
|
class ServiceThread final {
|
|
|
|
public:
|
2022-10-16 07:53:56 +02:00
|
|
|
explicit ServiceThread(KernelCore& kernel, const std::string& name);
|
2020-12-10 06:27:05 +01:00
|
|
|
~ServiceThread();
|
|
|
|
|
2022-10-16 07:53:56 +02:00
|
|
|
void RegisterServerSession(KServerSession* session,
|
|
|
|
std::shared_ptr<SessionRequestManager> manager);
|
2020-12-10 06:27:05 +01:00
|
|
|
|
|
|
|
private:
|
|
|
|
class Impl;
|
|
|
|
std::unique_ptr<Impl> impl;
|
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace Kernel
|