mirror of
https://github.com/opnsense/src.git
synced 2026-03-25 04:03:09 -04:00
kern_yield(0) effectively causes the calling thread to be rescheduled immediately since it resets the thread's priority to the highest possible value. This can cause livelocks when the pattern "while (!trylock()) kern_yield(0);" is used since the thread holding the lock may linger on the runqueue for the CPU on which the looping thread is running. MFC after: 1 week |
||
|---|---|---|
| .. | ||
| common | ||