Skip to content
Snippets Groups Projects
  • Mark Michelson's avatar
    4590bfd9
    Add new threadpool test and fix some taskprocessor bugs. · 4590bfd9
    Mark Michelson authored
    The new thread creation test fails because Asterisk locks up
    while trying to lock a taskprocessor.
    
    While trying to debug that, I found a race condition during taskprocessor
    creation where a default taskprocessor listener could try to operate on
    a partially started taskprocessor. This was fixed by adding a new callback
    to taskprocessor listeners.
    
    Then while testing that change, I found some bugs in the taskprocessor
    tests where I was not properly unlocking when done with a lock. Scoped
    locks have spoiled me a bit.
    
    I still have not figured out why the threadpool thread creation test
    is locking up.
    
    
    
    git-svn-id: https://origsvn.digium.com/svn/asterisk/team/mmichelson/threadpool@377368 65c4cc65-6c06-0410-ace0-fbb531ad65f3
    4590bfd9
    History
    Add new threadpool test and fix some taskprocessor bugs.
    Mark Michelson authored
    The new thread creation test fails because Asterisk locks up
    while trying to lock a taskprocessor.
    
    While trying to debug that, I found a race condition during taskprocessor
    creation where a default taskprocessor listener could try to operate on
    a partially started taskprocessor. This was fixed by adding a new callback
    to taskprocessor listeners.
    
    Then while testing that change, I found some bugs in the taskprocessor
    tests where I was not properly unlocking when done with a lock. Scoped
    locks have spoiled me a bit.
    
    I still have not figured out why the threadpool thread creation test
    is locking up.
    
    
    
    git-svn-id: https://origsvn.digium.com/svn/asterisk/team/mmichelson/threadpool@377368 65c4cc65-6c06-0410-ace0-fbb531ad65f3