mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-03 15:16:14 +00:00
Kernel: Require a reason to be passed to Thread::wait_on
The Lock class still permits no reason, but for everything else require a reason to be passed to Thread::wait_on. This makes it easier to diagnose why a Thread is in Queued state.
This commit is contained in:
@@ -71,7 +71,7 @@ KernelRng::KernelRng()
|
||||
void KernelRng::wait_for_entropy()
|
||||
{
|
||||
if (!resource().is_ready()) {
|
||||
Thread::current()->wait_on(m_seed_queue);
|
||||
Thread::current()->wait_on(m_seed_queue, "KernelRng");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user