For PR540:
authorReid Spencer <rspencer@reidspencer.com>
Tue, 12 Jul 2005 15:51:55 +0000 (15:51 +0000)
committerReid Spencer <rspencer@reidspencer.com>
Tue, 12 Jul 2005 15:51:55 +0000 (15:51 +0000)
commitee448630bdf7eb6037fe2c50518d32010c433ca3
treef8ecc527ec9e16ba1b610b08cbb35e2e05e5ebef
parentb2164e5cb5086f0595e96fdbb5ffc614dea9c441
For PR540:
This patch completes the changes for making lli thread-safe. Here's the list
of changes:
* The Support/ThreadSupport* files were removed and replaced with the
  MutexGuard.h file since all ThreadSupport* declared was a Mutex Guard.
  The implementation of MutexGuard.h is now based on sys::Mutex which hides
  its implementation and makes it unnecessary to have the -NoSupport.h and
  -PThreads.h versions of ThreadSupport.

* All places in ExecutionEngine that previously referred to "Mutex" now
  refer to sys::Mutex

* All places in ExecutionEngine that previously referred to "MutexLocker"
  now refer to MutexGuard (this is frivolous but I believe the technically
  correct name for such a class is "Guard" not a "Locker").

These changes passed all of llvm-test. All we need now are some test cases
that actually use multiple threads.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22404 91177308-0d34-0410-b5e6-96231b3b80d8
autoconf/configure.ac
configure
include/llvm/ExecutionEngine/ExecutionEngine.h
include/llvm/Support/MutexGuard.h
include/llvm/Support/ThreadSupport-NoSupport.h [deleted file]
include/llvm/Support/ThreadSupport-PThreads.h [deleted file]
include/llvm/Support/ThreadSupport.h.in [deleted file]
lib/ExecutionEngine/ExecutionEngine.cpp
lib/ExecutionEngine/JIT/JIT.cpp
lib/ExecutionEngine/JIT/JIT.h
lib/ExecutionEngine/JIT/JITEmitter.cpp