[all-commits] [llvm/llvm-project] 6f2304: [Support] Simplify and optimize ThreadPool

Fangrui Song via All-commits all-commits at lists.llvm.org
Tue Apr 28 12:25:07 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 6f230491197253be7c19b53c80be3e4a5835bc72
      https://github.com/llvm/llvm-project/commit/6f230491197253be7c19b53c80be3e4a5835bc72
  Author: Fangrui Song <maskray at google.com>
  Date:   2020-04-28 (Tue, 28 Apr 2020)

  Changed paths:
    M llvm/include/llvm/Support/ThreadPool.h
    M llvm/lib/Support/ThreadPool.cpp

  Log Message:
  -----------
  [Support] Simplify and optimize ThreadPool

* Merge QueueLock and CompletionLock.
* Avoid spurious CompletionCondition.notify_all() when ActiveThreads is greater than 0.
* Use default member initializers.

Reviewed By: mehdi_amini

Differential Revision: https://reviews.llvm.org/D78856




More information about the All-commits mailing list