Changes between Version 6 and Version 7 of Commentary/Rts/Signals


Ignore:
Timestamp:
Sep 8, 2010 4:43:36 PM (4 years ago)
Author:
ezyang
Comment:

SIGVTALRM is now used for threaded and unthreaded

Legend:

Unmodified
Added
Removed
Modified
  • Commentary/Rts/Signals

    v6 v7  
    3737   * [[GhcFile(rts/win32/Ticker.c)]] 
    3838 
    39 On Posix, the timer signal is implemented by calling `setitimer()` to generate regular `SIGALRM` signals (the single threaded RTS uses SIGVTALRM).  This isn't ideal, since we'd like to allow the application t so use `SIGALRM` if it needs to.  Ideally we should use something better (see #850). 
     39On Posix, the timer signal is implemented by calling `timer_create()` to generate regular `SIGVTALRM` signals (this was changed from SIGALRM in #850). 
    4040 
    4141On Windows, we spawn a new thread that repeatedly sleeps for the timer interval and then executes the timer interrupt handler.