diff options
author | shadchin <shadchin@yandex-team.ru> | 2022-02-10 16:44:39 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:44:39 +0300 |
commit | e9656aae26e0358d5378e5b63dcac5c8dbe0e4d0 (patch) | |
tree | 64175d5cadab313b3e7039ebaa06c5bc3295e274 /contrib/libs/llvm12/include/llvm/Support/Threading.h | |
parent | 2598ef1d0aee359b4b6d5fdd1758916d5907d04f (diff) | |
download | ydb-e9656aae26e0358d5378e5b63dcac5c8dbe0e4d0.tar.gz |
Restoring authorship annotation for <shadchin@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'contrib/libs/llvm12/include/llvm/Support/Threading.h')
-rw-r--r-- | contrib/libs/llvm12/include/llvm/Support/Threading.h | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/contrib/libs/llvm12/include/llvm/Support/Threading.h b/contrib/libs/llvm12/include/llvm/Support/Threading.h index 5e34ccd1e9..2a776ce6b9 100644 --- a/contrib/libs/llvm12/include/llvm/Support/Threading.h +++ b/contrib/libs/llvm12/include/llvm/Support/Threading.h @@ -217,7 +217,7 @@ void llvm_execute_on_thread_async( return heavyweight_hardware_concurrency(); } - /// Returns a default thread strategy where all available hardware resources + /// Returns a default thread strategy where all available hardware resources /// are to be used, except for those initially excluded by an affinity mask. /// This function takes affinity into consideration. Returns 1 when LLVM is /// configured with LLVM_ENABLE_THREADS=OFF. @@ -227,16 +227,16 @@ void llvm_execute_on_thread_async( return S; } - /// Returns an optimal thread strategy to execute specified amount of tasks. - /// This strategy should prevent us from creating too many threads if we - /// occasionaly have an unexpectedly small amount of tasks. - inline ThreadPoolStrategy optimal_concurrency(unsigned TaskCount = 0) { - ThreadPoolStrategy S; - S.Limit = true; - S.ThreadsRequested = TaskCount; - return S; - } - + /// Returns an optimal thread strategy to execute specified amount of tasks. + /// This strategy should prevent us from creating too many threads if we + /// occasionaly have an unexpectedly small amount of tasks. + inline ThreadPoolStrategy optimal_concurrency(unsigned TaskCount = 0) { + ThreadPoolStrategy S; + S.Limit = true; + S.ThreadsRequested = TaskCount; + return S; + } + /// Return the current thread id, as used in various OS system calls. /// Note that not all platforms guarantee that the value returned will be /// unique across the entire system, so portable code should not assume |