sleeping vs sched_yield

Paul Backus snarwin at gmail.com
Sat Dec 4 15:07:11 UTC 2021


On Thursday, 2 December 2021 at 23:29:17 UTC, Chris Katko wrote:
> Is there a D std.library accessible version of POSIX 
> sched_yield:
>
>   https://man7.org/linux/man-pages/man2/sched_yield.2.html

D bindings for POSIX headers are provided by modules in the 
package `core.sys.posix`. So, for `sched.h`, you would import 
`core.sys.posix.sched`.


More information about the Digitalmars-d-learn mailing list