Make timers threadsafe again. This isn't quite as nice as I'd hoped (it uses locking...
authorOwen Anderson <resistor@mac.com>
Tue, 23 Jun 2009 20:52:29 +0000 (20:52 +0000)
committerOwen Anderson <resistor@mac.com>
Tue, 23 Jun 2009 20:52:29 +0000 (20:52 +0000)
commit46d9a6494496d215e850f337b5a723c484212f80
tree0e7bb70cb2e9fac383f1673e8aaf334e215cd59e
parent223e99cd8d9a0a6a57504589b8593d402c67d38b
Make timers threadsafe again.  This isn't quite as nice as I'd hoped (it uses locking rather than atomic arithmetic),
but should work on all the platforms we care about.

I might revisit this if a totally awesome way to do it occurs to me.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74002 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Support/Timer.h
lib/Support/Timer.cpp