summaryrefslogtreecommitdiff
path: root/src/core/core_timing.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/core_timing.h')
-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:
132 /// Clear all pending events. This should ONLY be done on exit. 132 /// Clear all pending events. This should ONLY be done on exit.
133 void ClearPendingEvents(); 133 void ClearPendingEvents();
134 134
135 static void ThreadEntry(CoreTiming& instance); 135 static void ThreadEntry(CoreTiming& instance, size_t id);
136 void ThreadLoop(); 136 void ThreadLoop();
137 137
138 std::unique_ptr<Common::WallClock> clock; 138 std::unique_ptr<Common::WallClock> clock;
@@ -145,6 +145,7 @@ private:
145 // accomodated by the standard adaptor class. 145 // accomodated by the standard adaptor class.
146 std::vector<Event> event_queue; 146 std::vector<Event> event_queue;
147 u64 event_fifo_id = 0; 147 u64 event_fifo_id = 0;
148 std::atomic<size_t> pending_events{};
148 149
149 std::shared_ptr<EventType> ev_lost; 150 std::shared_ptr<EventType> ev_lost;
150 std::atomic<bool> has_started{}; 151 std::atomic<bool> has_started{};
@@ -156,6 +157,7 @@ private:
156 std::condition_variable wait_pause_cv; 157 std::condition_variable wait_pause_cv;
157 std::condition_variable wait_signal_cv; 158 std::condition_variable wait_signal_cv;
158 mutable std::mutex event_mutex; 159 mutable std::mutex event_mutex;
160 mutable std::mutex sequence_mutex;
159 161
160 std::atomic<bool> paused_state{}; 162 std::atomic<bool> paused_state{};
161 bool is_paused{}; 163 bool is_paused{};