summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/os/event.h
blob: cdbc4635a6ea10e33e93bebe5a5ba1ee45bd2e7d (plain) (blame)
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 2024 yuzu Emulator Project
// SPDX-License-Identifier: GPL-2.0-or-later

#pragma once

namespace Kernel {
class KEvent;
class KReadableEvent;
} // namespace Kernel

namespace Service {

namespace KernelHelpers {
class ServiceContext;
}

class Event {
public:
    explicit Event(KernelHelpers::ServiceContext& ctx);
    ~Event();

    void Signal();
    void Clear();

    Kernel::KReadableEvent* GetHandle();

private:
    Kernel::KEvent* m_event;
};

} // namespace Service