[PATCH] Change the LLVM global lock to use RAII semantics

Zachary Turner zturner at google.com
Fri Jun 13 16:25:54 PDT 2014


Hi chandlerc,

This patch gets rid of llvm_acquire_global_lock and llvm_release_global_lock and instead simply allows users to access the mutex object itself, enabling RAII semantics.

http://reviews.llvm.org/D4142

Files:
  include/llvm/Support/Mutex.h
  include/llvm/Support/Threading.h
  lib/Support/ManagedStatic.cpp
  lib/Support/Threading.cpp
  lib/Support/Timer.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D4142.10410.patch
Type: text/x-patch
Size: 4513 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20140613/b0b1c6cc/attachment.bin>


More information about the llvm-commits mailing list