Skip to content
Snippets Groups Projects
  • Mark Michelson's avatar
    77725bf2
    Move taskprocessors to use a listener model. · 77725bf2
    Mark Michelson authored
    Taskprocessors are now divided into two units: the task queue
    and their listeners.
    
    When a task is added to the queue, the listener is notified and
    can take whatever action is desired. This means that taskprocessors
    are no longer confined to having their tasks executed within a 
    single thread.
    
    A default taskprocessor listener has been added that mirrors the
    old taskprocessor behavior.
    
    I've tested it by running Asterisk and placing calls. It appears
    to work as expected. I'm going to do some cleaning up first and
    then write some unit tests to be sure everything works as expected.
    
    
    
    git-svn-id: https://origsvn.digium.com/svn/asterisk/team/mmichelson/threadpool@376118 65c4cc65-6c06-0410-ace0-fbb531ad65f3
    77725bf2
    History
    Move taskprocessors to use a listener model.
    Mark Michelson authored
    Taskprocessors are now divided into two units: the task queue
    and their listeners.
    
    When a task is added to the queue, the listener is notified and
    can take whatever action is desired. This means that taskprocessors
    are no longer confined to having their tasks executed within a 
    single thread.
    
    A default taskprocessor listener has been added that mirrors the
    old taskprocessor behavior.
    
    I've tested it by running Asterisk and placing calls. It appears
    to work as expected. I'm going to do some cleaning up first and
    then write some unit tests to be sure everything works as expected.
    
    
    
    git-svn-id: https://origsvn.digium.com/svn/asterisk/team/mmichelson/threadpool@376118 65c4cc65-6c06-0410-ace0-fbb531ad65f3