Enable or disable low-CPU mode.
When enabled, sleep_seconds uses the OS sleep backend which typically
yields to the scheduler and keeps idle CPU usage close to zero.
flag: .true. to enable low-CPU mode, .false. to use spin-waiting.| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| logical, | intent(in) | :: | flag |
subroutine set_low_cpu(flag) logical, intent(in) :: flag low_cpu_mode = flag end subroutine set_low_cpu