Skip to content
Snippets Groups Projects
Forked from Glasgow Haskell Compiler / GHC
Source project has a limited visibility.
  • Ben Gamari's avatar
    cab684f0
    rts: Add Windows-specific implementation of rtsSleep · cab684f0
    Ben Gamari authored and Marge Bot's avatar Marge Bot committed
    Previously we would use the POSIX path, which uses `nanosleep`. However,
    it turns out that `nanosleep` is provided by `libpthread` on Windows. In
    general we don't want to incur such a dependency. Avoid this by simply
    using `Sleep` on Windows.
    
    Fixes #18272.
    cab684f0
    History
    rts: Add Windows-specific implementation of rtsSleep
    Ben Gamari authored and Marge Bot's avatar Marge Bot committed
    Previously we would use the POSIX path, which uses `nanosleep`. However,
    it turns out that `nanosleep` is provided by `libpthread` on Windows. In
    general we don't want to incur such a dependency. Avoid this by simply
    using `Sleep` on Windows.
    
    Fixes #18272.
Code owners
Assign users and groups as approvers for specific file changes. Learn more.