summaryrefslogtreecommitdiffstats
path: root/src/core/core_timing.h
diff options
context:
space:
mode:
authorFernando Sahmkow <fsahmkow27@gmail.com>2022-06-29 01:29:24 +0200
committerFernando Sahmkow <fsahmkow27@gmail.com>2022-06-30 10:18:56 +0200
commit3196d957b02266293b68a60c75c3db9a00faf1f6 (patch)
treec78638c3617a1406b1626a230d7655c0df8b6dfc /src/core/core_timing.h
parentNative clock: Use atomic ops as before. (diff)
downloadyuzu-3196d957b02266293b68a60c75c3db9a00faf1f6.tar
yuzu-3196d957b02266293b68a60c75c3db9a00faf1f6.tar.gz
yuzu-3196d957b02266293b68a60c75c3db9a00faf1f6.tar.bz2
yuzu-3196d957b02266293b68a60c75c3db9a00faf1f6.tar.lz
yuzu-3196d957b02266293b68a60c75c3db9a00faf1f6.tar.xz
yuzu-3196d957b02266293b68a60c75c3db9a00faf1f6.tar.zst
yuzu-3196d957b02266293b68a60c75c3db9a00faf1f6.zip
Diffstat (limited to '')
-rw-r--r--src/core/core_timing.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/core/core_timing.h b/src/core/core_timing.h
index 4fef6fcce..a86553e08 100644
--- a/src/core/core_timing.h
+++ b/src/core/core_timing.h
@@ -132,7 +132,7 @@ private:
/// Clear all pending events. This should ONLY be done on exit.
void ClearPendingEvents();
- static void ThreadEntry(CoreTiming& instance);
+ static void ThreadEntry(CoreTiming& instance, size_t id);
void ThreadLoop();
std::unique_ptr<Common::WallClock> clock;
@@ -145,6 +145,7 @@ private:
// accomodated by the standard adaptor class.
std::vector<Event> event_queue;
u64 event_fifo_id = 0;
+ std::atomic<size_t> pending_events{};
std::shared_ptr<EventType> ev_lost;
std::atomic<bool> has_started{};
@@ -156,6 +157,7 @@ private:
std::condition_variable wait_pause_cv;
std::condition_variable wait_signal_cv;
mutable std::mutex event_mutex;
+ mutable std::mutex sequence_mutex;
std::atomic<bool> paused_state{};
bool is_paused{};