Issuing audio driver callbacks from their own thread.

This commit is contained in:
Ben Vanik
2014-01-12 02:07:17 -08:00
parent 4688d5e600
commit 127595b48a
3 changed files with 18 additions and 2 deletions

View File

@@ -133,6 +133,7 @@ int Processor::Setup() {
interrupt_thread_lock_ = xe_mutex_alloc(10000);
interrupt_thread_state_ = new XenonThreadState(
runtime_, 0, 16 * 1024, 0);
interrupt_thread_state_->set_name("Interrupt");
interrupt_thread_block_ = memory_->HeapAlloc(
0, 2048, MEMORY_FLAG_ZERO);
interrupt_thread_state_->context()->r[13] = interrupt_thread_block_;