Switching std::thread to XThread and hosting in object_refs.

This commit is contained in:
Ben Vanik
2015-05-24 20:22:06 -07:00
parent 1104f8e687
commit fff1a7c132
7 changed files with 152 additions and 28 deletions

View File

@@ -160,10 +160,10 @@ class AudioSystem {
cpu::Processor* processor_;
std::atomic<bool> worker_running_;
kernel::XHostThread* worker_thread_;
kernel::object_ref<kernel::XHostThread> worker_thread_;
std::atomic<bool> decoder_running_;
std::thread decoder_thread_;
kernel::object_ref<kernel::XHostThread> decoder_thread_;
xe::threading::Fence decoder_fence_;
std::mutex lock_;