[Support/Parallel] Use lock_guard which has less overhead than unique_lock.
authorFangrui Song <maskray@google.com>
Thu, 22 Mar 2018 23:40:02 +0000 (23:40 +0000)
committerFangrui Song <maskray@google.com>
Thu, 22 Mar 2018 23:40:02 +0000 (23:40 +0000)
commit41e8e529161e9bb0f2f10c6e7f2b4b827983bc6b
tree3b9c91968cb32567dc0890041b392b6a0f5b8ce4
parente975a473b7528d478553382ebdab2768f2cdce1f
[Support/Parallel] Use lock_guard which has less overhead than unique_lock.

Summary: unique_lock has the overhead of tracking ownership status and the owner.

Reviewers: grimar, zturner

Subscribers: llvm-commits

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

llvm-svn: 328271
llvm/include/llvm/Support/Parallel.h