2020-12-10 05:27:05 +00: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 09:06:39 +00:00
|
|
|
#include <string>
|
2020-12-10 05:27:05 +00:00
|
|
|
|
|
|
|
namespace Kernel {
|
|
|
|
|
|
|
|
class HLERequestContext;
|
|
|
|
class KernelCore;
|
|
|
|
class ServerSession;
|
|
|
|
|
|
|
|
class ServiceThread final {
|
|
|
|
public:
|
2020-12-29 09:06:39 +00:00
|
|
|
explicit ServiceThread(KernelCore& kernel, std::size_t num_threads, const std::string& name);
|
2020-12-10 05:27:05 +00:00
|
|
|
~ServiceThread();
|
|
|
|
|
|
|
|
void QueueSyncRequest(ServerSession& session, std::shared_ptr<HLERequestContext>&& context);
|
|
|
|
|
|
|
|
private:
|
|
|
|
class Impl;
|
|
|
|
std::unique_ptr<Impl> impl;
|
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace Kernel
|