Skip to content
Snippets Groups Projects
  • Joshua Colp's avatar
    b818d705
    threadpool: Handle worker thread transitioning to dead when going active. · b818d705
    Joshua Colp authored
    This change adds handling of dead worker threads when moving them
    to be active. When this happens the worker thread is removed from
    both the active and idle threads container. If no threads are able
    to be moved to active then the pool grows as configured.
    
    A unit test has also been added which thrashes the idle timeout
    and thread activation to exploit any race conditions between the
    two.
    
    ASTERISK-25546 #close
    
    Change-Id: I6c455f9a40de60d9e86458d447b548fb52ba1143
    b818d705
    History
    threadpool: Handle worker thread transitioning to dead when going active.
    Joshua Colp authored
    This change adds handling of dead worker threads when moving them
    to be active. When this happens the worker thread is removed from
    both the active and idle threads container. If no threads are able
    to be moved to active then the pool grows as configured.
    
    A unit test has also been added which thrashes the idle timeout
    and thread activation to exploit any race conditions between the
    two.
    
    ASTERISK-25546 #close
    
    Change-Id: I6c455f9a40de60d9e86458d447b548fb52ba1143