2020-12-09 21:27:05 -08:00
|
|
|
// Copyright 2020 yuzu emulator team
|
|
|
|
// Licensed under GPLv2 or any later version
|
|
|
|
// Refer to the license.txt file included.
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <memory>
|
2020-12-29 01:06:39 -08:00
|
|
|
#include <string>
|
2020-12-09 21:27:05 -08:00
|
|
|
|
|
|
|
namespace Kernel {
|
|
|
|
|
|
|
|
class HLERequestContext;
|
|
|
|
class KernelCore;
|
2021-04-13 17:48:37 -07:00
|
|
|
class KSession;
|
2020-12-09 21:27:05 -08:00
|
|
|
|
|
|
|
class ServiceThread final {
|
|
|
|
public:
|
2020-12-29 01:06:39 -08:00
|
|
|
explicit ServiceThread(KernelCore& kernel, std::size_t num_threads, const std::string& name);
|
2020-12-09 21:27:05 -08:00
|
|
|
~ServiceThread();
|
|
|
|
|
2021-04-13 17:48:37 -07:00
|
|
|
void QueueSyncRequest(KSession& session, std::shared_ptr<HLERequestContext>&& context);
|
2020-12-09 21:27:05 -08:00
|
|
|
|
|
|
|
private:
|
|
|
|
class Impl;
|
|
|
|
std::unique_ptr<Impl> impl;
|
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace Kernel
|