2022-04-23 04:59:50 -04:00
|
|
|
// SPDX-FileCopyrightText: Copyright 2020 yuzu Emulator Project
|
|
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
2020-12-10 00:27:05 -05:00
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <memory>
|
2020-12-29 04:06:39 -05:00
|
|
|
#include <string>
|
2020-12-10 00:27:05 -05:00
|
|
|
|
|
|
|
namespace Kernel {
|
|
|
|
|
|
|
|
class HLERequestContext;
|
|
|
|
class KernelCore;
|
2021-04-13 20:48:37 -04:00
|
|
|
class KSession;
|
2020-12-10 00:27:05 -05:00
|
|
|
|
|
|
|
class ServiceThread final {
|
|
|
|
public:
|
2020-12-29 04:06:39 -05:00
|
|
|
explicit ServiceThread(KernelCore& kernel, std::size_t num_threads, const std::string& name);
|
2020-12-10 00:27:05 -05:00
|
|
|
~ServiceThread();
|
|
|
|
|
2021-04-13 20:48:37 -04:00
|
|
|
void QueueSyncRequest(KSession& session, std::shared_ptr<HLERequestContext>&& context);
|
2020-12-10 00:27:05 -05:00
|
|
|
|
|
|
|
private:
|
|
|
|
class Impl;
|
|
|
|
std::unique_ptr<Impl> impl;
|
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace Kernel
|