[Subversion] / PEAK / CHANGES.txt  

Diff of /PEAK/CHANGES.txt

Parent Directory | Revision Log

version 1605, Mon Jan 19 01:55:19 2004 UTC version 1606, Mon Jan 19 03:35:36 2004 UTC
Line 2 
Line 2 
   
  Changed, Enhanced, or Newly Deprecated Features   Changed, Enhanced, or Newly Deprecated Features
   
    - 'running.ISignalManager' is now DEPRECATED; please use 'events.ISignalSource'
      instead.
   
    - Added 'events.ISignalSource', that returns 'events.Broadcaster' objects for
      signals.  This allows you to yield to signals in an 'events.Thread', or
      safely set one-time callbacks on them.
   
    - 'running.IMainLoop' has been changed to use an 'events.IReadable' for
      the 'lastActivity' attribute, and the 'setExitCode' and 'childForked'
      methods have been replaced with an 'exitWith()' method.
   
    - The 'peak.running.mainLoop.signalHandler' property has been replaced with
      'peak.running.mainLoop.stopOnSignals', which defaults to including SIGINT,
      SIGTERM, and SIGBREAK.  If you need custom signal handling, please use
      the event sources provided by an 'events.ISignalSource'.
   
  - Simplified configuration for using Twisted, roughly as proposed in   - Simplified configuration for using Twisted, roughly as proposed in
    "this message.":http://www.eby-sarna.com/pipermail/peak/2004-January/001125.html     "this message.":http://www.eby-sarna.com/pipermail/peak/2004-January/001125.html
   
Line 291 
Line 307 
  - Added 'IMainLoop.setExitCode()' and 'IMainLoop.childForked()' methods, to   - Added 'IMainLoop.setExitCode()' and 'IMainLoop.childForked()' methods, to
    allow reactor-driven components to control the mainloop's exit code.     allow reactor-driven components to control the mainloop's exit code.
   
  - Added 'running.ISignalManager' and a default implementation.  Use its  
    'addHandler()/removeHandler()' methods to add or remove signal handlers.  
    Signal handlers define methods like 'def SIGCHLD(self,signum,frame):' that  
    will be called when the associated signal is received.  All active handlers  
    for a given signal are invoked, so you can easily have multiple components  
    listen for 'SIGCHLD', for example.  
   
  - Added 'IBasicReactor.crash()', which forces an immediate reactor loop exit,   - Added 'IBasicReactor.crash()', which forces an immediate reactor loop exit,
    ignoring pending scheduled calls.     ignoring pending scheduled calls.
   
Line 461 
Line 470 
    property ('peak.running.reactor.checkInterval') to determine how long it     property ('peak.running.reactor.checkInterval') to determine how long it
    should run 'select()' calls for, when there are no scheduled tasks.     should run 'select()' calls for, when there are no scheduled tasks.
   
  - 'peak.running.scheduler.MainLoop' now supports using a "signal  
    handler" component (via the 'peak.running.mainLoop.signalHandler' property)  
    to process signals while a 'run()' loop is in progress.  Signal handlers can  
    also be added or removed at any time via the 'running.ISignalManager'  
    service.  
   
  - 'peak.running.commands.AbstractCommand' now offers a '_run()' method that   - 'peak.running.commands.AbstractCommand' now offers a '_run()' method that
    can be overridden in subclasses, instead of 'run()'.  If you override the     can be overridden in subclasses, instead of 'run()'.  If you override the
    new '_run()' method instead, you get the advantage of automatic handling     new '_run()' method instead, you get the advantage of automatic handling


Generate output suitable for use with a patch program
Legend:
Removed from v.1605  
changed lines
  Added in v.1606

cvs-admin@eby-sarna.com

Powered by ViewCVS 1.0-dev

ViewCVS and CVS Help