summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/CommandProcessor.h
diff options
context:
space:
mode:
authorMarkus Wick <markus+github@selfnet.de>2015-05-27 11:07:36 +0200
committerMarkus Wick <markus+github@selfnet.de>2015-05-27 11:07:36 +0200
commit255a8dfdd2ea20f0f250c206915c56f759d38372 (patch)
treebc592df0fd6cd33fa14dd3145a47b9c3443892f5 /Source/Core/VideoCommon/CommandProcessor.h
parent3318120632144a99531562b4bb60234c521e01e5 (diff)
parent1ba3b4e7ac9d53710454c46ac5384ee44a096b70 (diff)
Merge pull request #2465 from lioncash/commandproc
CommandProcessor: Replace volatile usages with atomics
Diffstat (limited to 'Source/Core/VideoCommon/CommandProcessor.h')
-rw-r--r--Source/Core/VideoCommon/CommandProcessor.h14
1 files changed, 8 insertions, 6 deletions
diff --git a/Source/Core/VideoCommon/CommandProcessor.h b/Source/Core/VideoCommon/CommandProcessor.h
index 5c49f0bb69..0b33150ce4 100644
--- a/Source/Core/VideoCommon/CommandProcessor.h
+++ b/Source/Core/VideoCommon/CommandProcessor.h
@@ -17,11 +17,6 @@ namespace CommandProcessor
{
extern SCPFifoStruct fifo; //This one is shared between gfx thread and emulator thread.
-
-extern volatile bool interruptSet;
-extern volatile bool interruptWaiting;
-extern volatile bool interruptTokenWaiting;
-extern volatile bool interruptFinishWaiting;
extern Common::Flag s_gpuMaySleep;
// internal hardware addresses
@@ -143,12 +138,19 @@ void GatherPipeBursted();
void UpdateInterrupts(u64 userdata);
void UpdateInterruptsFromVideoBackend(u64 userdata);
+bool IsInterruptWaiting();
+void SetInterruptTokenWaiting(bool waiting);
+void SetInterruptFinishWaiting(bool waiting);
+
void SetCpClearRegister();
void SetCpControlRegister();
void SetCpStatusRegister();
void ProcessFifoEvents();
void Update();
-extern volatile u32 VITicks;
+
+u32 GetVITicks();
+void SetVITicks(u32 ticks);
+void DecrementVITicks(u32 ticks);
} // namespace CommandProcessor