Wait until the ringbuffer thread is spun up.

This could be made much nicer.
This commit is contained in:
Ben Vanik 2013-10-13 11:06:29 -07:00
parent cc12f0b96a
commit fa4c7cdd83
1 changed files with 4 additions and 0 deletions

View File

@ -115,6 +115,10 @@ void GraphicsSystem::SetInterruptCallback(uint32_t callback,
}
void GraphicsSystem::InitializeRingBuffer(uint32_t ptr, uint32_t page_count) {
// TODO(benvanik): an event?
while (!driver_) {
Sleep(0);
}
XEASSERTNOTNULL(driver_);
worker_->Initialize(driver_, ptr, page_count);
}