mirror of
https://github.com/yuzu-mirror/yuzu.git
synced 2024-11-19 00:17:32 +01:00
ec0ce96c56
* core_timing: Use better reference tracking for EventType. - Moves ownership of the event to the caller, ensuring we don't fire events for destroyed objects. - Removes need for unique names - we won't be using this for save states anyways.
34 lines
610 B
C++
34 lines
610 B
C++
// Copyright 2019 Yuzu Emulator Project
|
|
// Licensed under GPLv2 or any later version
|
|
// Refer to the license.txt file included.
|
|
|
|
#pragma once
|
|
|
|
#include <memory>
|
|
|
|
#include "common/common_types.h"
|
|
|
|
namespace Core {
|
|
class System;
|
|
}
|
|
|
|
namespace Core::Timing {
|
|
struct EventType;
|
|
}
|
|
|
|
namespace Core::Hardware {
|
|
|
|
class InterruptManager {
|
|
public:
|
|
explicit InterruptManager(Core::System& system);
|
|
~InterruptManager();
|
|
|
|
void GPUInterruptSyncpt(u32 syncpoint_id, u32 value);
|
|
|
|
private:
|
|
Core::System& system;
|
|
std::shared_ptr<Core::Timing::EventType> gpu_interrupt_event;
|
|
};
|
|
|
|
} // namespace Core::Hardware
|