XMA: Add an idle "low-power" state for the decoder.

This commit is contained in:
Dr. Chat
2017-01-28 20:58:23 -06:00
parent c5487371f9
commit a093fdcef8
4 changed files with 28 additions and 9 deletions

View File

@@ -69,7 +69,7 @@ class XmaDecoder {
std::atomic<bool> worker_running_ = {false};
kernel::object_ref<kernel::XHostThread> worker_thread_;
xe::threading::Fence worker_fence_;
std::unique_ptr<xe::threading::Event> work_event_ = nullptr;
bool paused_ = false;
xe::threading::Fence pause_fence_; // Signaled when worker paused.