C++ Crashkurs
IdleThread Class Reference
Thread that is executed when there is nothing to do for this core. More...
#include <thread/idlethread.h>


Public Member Functions | |
void | action () override |
Wait for a thread to become ready and sleep in the meantime. | |
![]() |
Additional Inherited Members | |
![]() | |
![]() | |
![]() | |
![]() |
Detailed Description
Thread that is executed when there is nothing to do for this core.
Using the IdleThread simplifies the idea of waiting and is an answer to the questions that arise once the ready queue is empty.
- Note
- Instance of this class should never be inserted into the scheduler's ready queue, as the IdleThread should only be executed if there is no proper work to do.
The documentation for this class was generated from the following files:
- thread/idlethread.h
- thread/idlethread.cc