Changeset 30228 in project for wiki/eggref/4/sdl-base


Ignore:
Timestamp:
12/27/13 22:10:48 (6 years ago)
Author:
svnwiki
Message:

Anonymous wiki edit for IP [84.210.11.111]: note about blocking threads

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wiki/eggref/4/sdl-base

    r29288 r30228  
    337337Wait for a new SDL Event.  {{delay-function}} is expected to take a single number and sleep that many milliseconds (call {{sdl-wait-event!}} instead if you're unsure what to use).  If {{sdl-event}} is provided, it will be populated with the event data.
    338338
     339Note that {{sdl-event}} blocks other srfi-18 threads. You can use {{(lambda (ms) (thread-sleep! (/ ms 1000)))}} as the delay-function for sdl-event processing in a separate srfi-18 thread.
     340
    339341<procedure>(sdl-wait-event! [sdl-event])</procedure>
    340342Same as {{(sdl-wait-event!* sdl-delay [sdl-event])}}.
Note: See TracChangeset for help on using the changeset viewer.