Skip to content

Commit

Permalink
add Note that for maxNumPendingJobs (#5225)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeffrey Mendelsohn authored and GitHub Enterprise committed Feb 26, 2025
1 parent 256566f commit e3ea0e1
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions groups/bdl/bdlmt/bdlmt_fixedthreadpool.h
Original file line number Diff line number Diff line change
Expand Up @@ -472,7 +472,9 @@ class FixedThreadPool {
/// a `basicAllocator` used to supply memory. If `basicAllocator` is 0,
/// the currently installed default allocator is used. The name used for
/// created threads is "bdl.FixedPool". The behavior is undefined unless
/// `1 <= numThreads`.
/// `1 <= numThreads`. Note that the actual job queue capacity can be
/// obtained using `queueCapacity`, and may be more than
/// `maxNumPendingJobs`.
FixedThreadPool(int numThreads,
int maxNumPendingJobs,
bslma::Allocator *basicAllocator = 0);
Expand All @@ -487,7 +489,9 @@ class FixedThreadPool {
/// If `basicAllocator` is 0, the currently installed default allocator
/// is used. The name used for created threads is `threadPoolName` if not
/// empty, otherwise "bdl.FixedPool". The behavior is undefined unless
/// `1 <= numThreads`.
/// `1 <= numThreads`. Note that the actual job queue capacity can be
/// obtained using `queueCapacity`, and may be more than
/// `maxNumPendingJobs`.
FixedThreadPool(int numThreads,
int maxNumPendingJobs,
const bsl::string_view& threadPoolName,
Expand All @@ -503,7 +507,9 @@ class FixedThreadPool {
/// `threadAttributes.threadName()` if not empty, otherwise
/// "bdl.FixedPool". The detached state of `threadAttributes` is ignored,
/// and `e_CREATE_JOINABLE` is used in all cases. The behavior is
/// undefined unless `1 <= numThreads`.
/// undefined unless `1 <= numThreads`. Note that the actual job queue
/// capacity can be obtained using `queueCapacity`, and may be more than
/// `maxNumPendingJobs`.
FixedThreadPool(const bslmt::ThreadAttributes& threadAttributes,
int numThreads,
int maxNumPendingJobs,
Expand All @@ -522,7 +528,9 @@ class FixedThreadPool {
/// otherwise `threadPoolName` if not empty, otherwise "bdl.FixedPool".
/// The detached state of `threadAttributes` is ignored, and
/// `e_CREATE_JOINABLE` is used in all cases. The behavior is undefined
/// unless `1 <= numThreads`.
/// unless `1 <= numThreads`. Note that the actual job queue capacity can
/// be obtained using `queueCapacity`, and may be more than
/// `maxNumPendingJobs`.
FixedThreadPool(const bslmt::ThreadAttributes& threadAttributes,
int numThreads,
int maxNumPendingJobs,
Expand Down

0 comments on commit e3ea0e1

Please sign in to comment.