aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/hle/service/mutex.h
blob: 95ac9b117ad12d865e9d24ce643f3a4cda737e35 (plain)
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
30
31
// SPDX-FileCopyrightText: Copyright 2023 yuzu Emulator Project
// SPDX-License-Identifier: GPL-2.0-or-later

#pragma once

#include "common/common_types.h"

namespace Core {
class System;
}

namespace Kernel {
class KEvent;
}

namespace Service {

class Mutex {
public:
    explicit Mutex(Core::System& system);
    ~Mutex();

    void lock();
    void unlock();

private:
    Core::System& m_system;
    Kernel::KEvent* m_event{};
};

} // namespace Service