mirror of
https://github.com/opnsense/src.git
synced 2026-02-15 00:34:33 -05:00
if the specified priority is zero. This avoids a race where the calling thread could read a snapshot of it's current priority, then a different thread could change the first thread's priority, then the original thread would call sched_prio() inside msleep() undoing the change made by the second thread. I used a priority of zero as no thread that calls msleep() or tsleep() should be specifying a priority of zero anyway. The various places that passed 'curthread->td_priority' or some variant as the priority now pass 0. |
||
|---|---|---|
| .. | ||
| hwpmc_alpha.c | ||
| hwpmc_amd.c | ||
| hwpmc_amd.h | ||
| hwpmc_arm.c | ||
| hwpmc_ia64.c | ||
| hwpmc_logging.c | ||
| hwpmc_mod.c | ||
| hwpmc_pentium.c | ||
| hwpmc_pentium.h | ||
| hwpmc_piv.c | ||
| hwpmc_piv.h | ||
| hwpmc_powerpc.c | ||
| hwpmc_ppro.c | ||
| hwpmc_ppro.h | ||
| hwpmc_sparc64.c | ||
| hwpmc_x86.c | ||
| pmc_events.h | ||