Skip to content
Snippets Groups Projects
  1. Sep 29, 2014
  2. Jun 20, 2013
    • Mark Michelson's avatar
      Fix threadpool rapid growth problem. · 33eb15a2
      Mark Michelson authored
      When a threadpool is set to autoincrement its threadcount, an issue
      may arise when multiple tasks are queued at once into the threadpool. Since
      threads start active, each new task would result in autoincrementing the
      thread count. So if all threads were active, and a thread's autoincrement
      value were 5, then 3 new tasks would result in 15 threads being created even
      though the initial autoincrement was sufficient to handle the number of tasks.
      
      This change introduces three behavior changes:
      
      1) New threads in the threadpool start idle instead of active.
      2) When a threadpool autoincrements, one thread is activated after the growth.
      3) When a threadpool's size is incremented manually, all added threads are activated.
      
      For a more detailed explanation about the changes, please see the Review Board link
      at the bottom of this commit.
      
      Review: https://reviewboard.asterisk.org/r/2629
      
      
      
      git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@392318 65c4cc65-6c06-0410-ace0-fbb531ad65f3
      33eb15a2
  3. Apr 25, 2013
    • Mark Michelson's avatar
      Merge the pimp_my_sip branch into trunk. · 74f23180
      Mark Michelson authored
      The pimp_my_sip branch is being merged at this point because
      it offers basic functionality, and from an API standpoint, things
      are complete.
      
      SIP work is *not* feature-complete; however, with the completion
      of the SUBSCRIBE/NOTIFY API, all APIs (except a PUBLISH API) have
      been created, and thus it is possible for developers to attempt
      to create new SIP work.
      
      API documentation can be found in the doxygen in the code, but
      usability documentation is still lacking.
      
      
      
      git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@386540 65c4cc65-6c06-0410-ace0-fbb531ad65f3
      74f23180
  4. Mar 07, 2013
  5. Mar 06, 2013
  6. Feb 28, 2013
  7. Feb 12, 2013
    • David M. Lee's avatar
      Add a serializer interface to the threadpool · 222e8a3a
      David M. Lee authored
      This patch adds the ability to create a serializer from a thread pool. A
      serializer is a ast_taskprocessor with the same contract as a default
      taskprocessor (tasks execute serially) except instead of executing out
      of a dedicated thread, execution occurs in a thread from a
      ast_threadpool. Think of it as a lightweight thread.
      
      While it guarantees that each task will complete before executing the
      next, there is no guarantee as to which thread from the pool individual
      tasks will execute. This normally only matters if your code relys on
      thread specific information, such as thread locals.
      
      This patch also fixes a bug in how the 'was_empty' parameter is computed
      for the push callback, and gets rid of the unused 'shutting_down' field.
      
      Review: https://reviewboard.asterisk.org/r/2323/
      
      
      git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@381326 65c4cc65-6c06-0410-ace0-fbb531ad65f3
      222e8a3a
  8. Jan 17, 2013
  9. Jan 15, 2013
  10. Jan 07, 2013
  11. Dec 11, 2012
  12. Dec 10, 2012
  13. Dec 09, 2012
  14. Dec 07, 2012
  15. Dec 06, 2012
  16. Dec 04, 2012
  17. Dec 03, 2012
  18. Nov 30, 2012
  19. Nov 29, 2012
Loading