leftmike / foment

Foment is an implementation of R7RS Scheme.
MIT License
67 stars 4 forks source link

threads: osx: Port thread-sleep! to osx #39

Closed okuoku closed 2 years ago

okuoku commented 2 years ago

macOS lacks POSIX clock_nanosleep implementation. Workaround with nanosleep. As just like current Windows implementation, it does not handle local time updates.

clock_gettime requires macOS 10.12(Sierra) or later.

leftmike commented 2 years ago

Thank you!