For PR540:
authorReid Spencer <rspencer@reidspencer.com>
Tue, 12 Jul 2005 15:37:43 +0000 (15:37 +0000)
committerReid Spencer <rspencer@reidspencer.com>
Tue, 12 Jul 2005 15:37:43 +0000 (15:37 +0000)
commitb2164e5cb5086f0595e96fdbb5ffc614dea9c441
tree1d75378c4ce6365fcaf202243766c4b400b809bd
parent22177fe580ef2e32cb2392408a00d8b6dfcaba6c
For PR540:
Add a Mutex class for thread synchronization in a platform-independent way.
The current implementation only supports pthreads. Win32 use of Critical
Sections will be added later. The design permits other threading models to
be used if (and only if) pthreads is not available.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22403 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/System/Mutex.h [new file with mode: 0644]
lib/System/Mutex.cpp [new file with mode: 0644]
lib/System/Unix/Mutex.inc [new file with mode: 0644]
lib/System/Win32/Mutex.inc [new file with mode: 0644]