summaryrefslogtreecommitdiffstats
path: root/src/core/hle/kernel/service_thread.h
blob: fb43255317a95c3b6d87f051c488b3e261f40ebe (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
// SPDX-FileCopyrightText: Copyright 2020 yuzu Emulator Project
// SPDX-License-Identifier: GPL-2.0-or-later

#pragma once

#include <memory>
#include <string>

namespace Kernel {

class HLERequestContext;
class KernelCore;
class KSession;
class SessionRequestManager;

class ServiceThread final {
public:
    explicit ServiceThread(KernelCore& kernel, const std::string& name);
    ~ServiceThread();

    void RegisterServerSession(KServerSession* session,
                               std::shared_ptr<SessionRequestManager> manager);

private:
    class Impl;
    std::unique_ptr<Impl> impl;
};

} // namespace Kernel