Dylan Noblesmith 389f13012f Support: add llvm::unique_lock
Based on the STL class of the same name, it guards a mutex
while also allowing it to be unlocked conditionally before
destruction.

This eliminates the last naked usages of mutexes in LLVM and
clang.

It also uncovered and fixed a bug in callExternalFunction()
when compiled without USE_LIBFFI, where the mutex would never
be unlocked if the end of the function was reached.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@216338 91177308-0d34-0410-b5e6-96231b3b80d8
2014-08-23 23:07:14 +00:00
..
2014-07-18 15:51:28 +00:00
2014-07-18 15:51:28 +00:00
2014-06-27 18:19:56 +00:00
2014-06-25 23:39:08 +00:00
2014-07-18 15:51:28 +00:00
2014-06-27 18:19:56 +00:00
2014-06-27 18:19:56 +00:00
2014-08-15 22:17:28 +00:00
2014-07-24 14:25:39 +00:00
2014-07-24 14:25:39 +00:00
2014-04-29 13:21:05 +00:00
2014-08-01 23:28:49 +00:00
2014-04-24 06:44:33 +00:00
2014-08-23 23:07:14 +00:00