summaryrefslogblamecommitdiffstats
path: root/src/core/hle/kernel/service_thread.h
blob: 91ad7ae856bbb995e414fb62b13c09f99c458c7d (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16















                                            
                                                                        









                                                                                                
// Copyright 2020 yuzu emulator team
// Licensed under GPLv2 or any later version
// Refer to the license.txt file included.

#pragma once

#include <memory>

namespace Kernel {

class HLERequestContext;
class KernelCore;
class ServerSession;

class ServiceThread final {
public:
    explicit ServiceThread(KernelCore& kernel, std::size_t num_threads);
    ~ServiceThread();

    void QueueSyncRequest(ServerSession& session, std::shared_ptr<HLERequestContext>&& context);

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

} // namespace Kernel