Wait until the ringbuffer thread is spun up.
This could be made much nicer.
This commit is contained in:
parent
cc12f0b96a
commit
fa4c7cdd83
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue