Yield execution to another thread. Offers the operating system the opportunity to schedule another thread that is ready to run on the current processor.
| 681 | /// Offers the operating system the opportunity to schedule another thread |
| 682 | /// that is ready to run on the current processor. |
| 683 | inline void yield() |
| 684 | { |
| 685 | #if defined(_TTHREAD_WIN32_) |
| 686 | Sleep(0); |
| 687 | #else |
| 688 | sched_yield(); |
| 689 | #endif |
| 690 | } |
| 691 | |
| 692 | /// Blocks the calling thread for a period of time. |
| 693 | /// @param[in] aTime Minimum time to put the thread to sleep. |
nothing calls this directly
no outgoing calls
no test coverage detected