Kernel: Fix most of mutex + block race conditions
All block functions now take an optional mutex parameter that is atomically unlocked instead of having the user unlock it before hand. This prevents a ton of race conditions everywhere in the code!
This commit is contained in:
@@ -963,7 +963,7 @@ acpi_release_global_lock:
|
||||
|
||||
// FIXME: this can cause missing of event if it happens between
|
||||
// reading the status and blocking
|
||||
m_event_thread_blocker.block_with_timeout_ms(100);
|
||||
m_event_thread_blocker.block_with_timeout_ms(100, nullptr);
|
||||
continue;
|
||||
|
||||
handle_event:
|
||||
|
||||
Reference in New Issue
Block a user