Weston Pace created ARROW-11942:
-----------------------------------

             Summary: [C++] If tasks are submitted quickly the thread pool may 
fail to spin up new threads
                 Key: ARROW-11942
                 URL: https://issues.apache.org/jira/browse/ARROW-11942
             Project: Apache Arrow
          Issue Type: Bug
          Components: C++
            Reporter: Weston Pace
            Assignee: Weston Pace


Probably only really affects unit tests.  Consider an idle thread pool with 1 
thread (ready_count_ == 1).  If `Spawn` is called very quickly it may look like 
`ready_count_` is still greater than 0 (because `ready_count_` doesn't 
necessarily decrement by the time `Spawn` returns) and so it will not spin up 
new threads.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to