summaryrefslogblamecommitdiffstats
path: root/src/core/hle/service/os/event.h
blob: cdbc4635a6ea10e33e93bebe5a5ba1ee45bd2e7d (plain) (tree)






























                                                               
// 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