Use system sleep functions as threadDelay sleep to long without -threaded
This commit is contained in:
parent
c0d2d54ea1
commit
d6b28723a2
5 changed files with 17 additions and 4 deletions
|
@ -105,6 +105,8 @@ instance Driver GLX where
|
|||
swapBuffers glx = Bindings.GLX.swapBuffers (glxDisplay glx) (glxWindow glx)
|
||||
|
||||
nextEvent glx = allocaXEvent $ nextEvent' glx
|
||||
|
||||
usleep _ usecs = glxUsleep $ fromIntegral usecs
|
||||
|
||||
|
||||
nextEvent' :: GLX -> XEventPtr -> IO (GLX, Maybe SomeEvent)
|
||||
|
|
Reference in a new issue