Skip to content
  • Sam McCall's avatar
    [clangd] Make background index thread count calculation clearer · 3c5745cb
    Sam McCall authored
    Summary:
    This confusion was inadvertently introduced in a change to the
    heavyweight_hardware_concurrency API: 8404aeb5
    
    - don't indirect through the rebuilder policy when building the thread pool
    - document that rebuilder thresholds are exposed for testing only
    - don't use 0 as a sentinel value for "all threads", as we use it as a
      sentinel value for "synchronous" (though unsupported for BackgroundIndex)
    - rather than pick some new sentinel value, just always use 4 threads for tests
    
    Reviewers: kadircet, aganea
    
    Subscribers: ilya-biryukov, MaskRay, jkorous, arphaman, usaxena95, cfe-commits
    
    Tags: #clang
    
    Differential Revision: https://reviews.llvm.org/D82352
    3c5745cb