diff options
author | Jeff Cohen <jeffc@jolt-lang.org> | 2005-07-27 06:12:32 +0000 |
---|---|---|
committer | Jeff Cohen <jeffc@jolt-lang.org> | 2005-07-27 06:12:32 +0000 |
commit | 5f4ef3c5a88f058ad98611c24617f41bc6a45d50 (patch) | |
tree | 3c31e3e2214e6adfa39e09862f9a26865f575847 /llvm/lib/System/Mutex.cpp | |
parent | 8e2411334cd0d7f6be54dd2b5d5cc012b6e604a1 (diff) | |
download | bcm5719-llvm-5f4ef3c5a88f058ad98611c24617f41bc6a45d50.tar.gz bcm5719-llvm-5f4ef3c5a88f058ad98611c24617f41bc6a45d50.zip |
Eliminate all remaining tabs and trailing spaces.
llvm-svn: 22523
Diffstat (limited to 'llvm/lib/System/Mutex.cpp')
-rw-r--r-- | llvm/lib/System/Mutex.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/llvm/lib/System/Mutex.cpp b/llvm/lib/System/Mutex.cpp index 799beee6806..644e1d07053 100644 --- a/llvm/lib/System/Mutex.cpp +++ b/llvm/lib/System/Mutex.cpp @@ -29,9 +29,9 @@ using namespace sys; #include <stdlib.h> // This variable is useful for situations where the pthread library has been -// compiled with weak linkage for its interface symbols. This allows the +// compiled with weak linkage for its interface symbols. This allows the // threading support to be turned off by simply not linking against -lpthread. -// In that situation, the value of pthread_mutex_init will be 0 and +// In that situation, the value of pthread_mutex_init will be 0 and // consequently pthread_enabled will be false. In such situations, all the // pthread operations become no-ops and the functions all return false. If // pthread_mutex_init does have an address, then mutex support is enabled. @@ -48,7 +48,7 @@ Mutex::Mutex( bool recursive) if (pthread_enabled) { // Declare the pthread_mutex data structures - pthread_mutex_t* mutex = + pthread_mutex_t* mutex = static_cast<pthread_mutex_t*>(malloc(sizeof(pthread_mutex_t))); pthread_mutexattr_t attr; @@ -92,10 +92,10 @@ Mutex::~Mutex() } } -bool +bool Mutex::acquire() { - if (pthread_enabled) + if (pthread_enabled) { pthread_mutex_t* mutex = reinterpret_cast<pthread_mutex_t*>(data_); assert(mutex != 0); @@ -106,7 +106,7 @@ Mutex::acquire() return false; } -bool +bool Mutex::release() { if (pthread_enabled) @@ -120,7 +120,7 @@ Mutex::release() return false; } -bool +bool Mutex::tryacquire() { if (pthread_enabled) |