This file defines constants and macros for the thread scheduler task of PwnOS.
| ThreadScheduler.inc | This file defines constants and macros for the thread scheduler task of PwnOS. |
| Macros | |
| GET_THREAD_SCHEDULER_ACCESS | Acquire access to the thread scheduler task. |
| RELEASE_THREAD_SCHEDULER_ACCESS | Release access to the thread scheduler task so that another processor can access it. |
| JMP_THREAD_SCHEDULER | Leave the current thread to allow another to run. |
Acquire access to the thread scheduler task.
This doesn’t associate a thread with it, just limits access to one processor at a time. As such, interrupts must be disabled already.