projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
System/Path/Windows: Change GetRootDirectory to return file:/// instead of C:/.
[oota-llvm.git]
/
lib
/
System
/
Mutex.cpp
diff --git
a/lib/System/Mutex.cpp
b/lib/System/Mutex.cpp
index a5e9920ae3f03950bc2823d86b2574dc8ef896b2..8ccd6e52c4d5bbdb7ec2ec55630d8a71274890bc 100644
(file)
--- a/
lib/System/Mutex.cpp
+++ b/
lib/System/Mutex.cpp
@@
-115,8
+115,7
@@
MutexImpl::acquire()
int errorcode = pthread_mutex_lock(mutex);
return errorcode == 0;
int errorcode = pthread_mutex_lock(mutex);
return errorcode == 0;
- }
- return false;
+ } else return false;
}
bool
}
bool
@@
-129,8
+128,7
@@
MutexImpl::release()
int errorcode = pthread_mutex_unlock(mutex);
return errorcode == 0;
int errorcode = pthread_mutex_unlock(mutex);
return errorcode == 0;
- }
- return false;
+ } else return false;
}
bool
}
bool
@@
-143,8
+141,7
@@
MutexImpl::tryacquire()
int errorcode = pthread_mutex_trylock(mutex);
return errorcode == 0;
int errorcode = pthread_mutex_trylock(mutex);
return errorcode == 0;
- }
- return false;
+ } else return false;
}
}
}
}