Disable decoding on dedicated thread

This commit is contained in:
Gliniak 2023-06-02 21:33:29 +02:00
parent 47acc310d4
commit ee267a1d12
1 changed files with 2 additions and 1 deletions

View File

@ -144,7 +144,7 @@ X_STATUS XmaDecoder::Setup(kernel::KernelState* kernel_state) {
kernel::object_ref<kernel::XHostThread>(new kernel::XHostThread(
kernel_state, 128 * 1024, 0,
[this]() {
WorkerThreadMain();
// WorkerThreadMain();
return 0;
},
kernel_state
@ -311,6 +311,7 @@ void XmaDecoder::WriteRegister(uint32_t addr, uint32_t value) {
uint32_t context_id = base_context_id + i;
auto& context = contexts_[context_id];
context.Enable();
context.Work();
}
}
// Signal the decoder thread to start processing.