summaryrefslogtreecommitdiff
path: root/libs/rs/rsMutex.cpp
diff options
context:
space:
mode:
author Alex Sakhartchouk <alexst@google.com> 2010-11-09 17:00:54 -0800
committer Alex Sakhartchouk <alexst@google.com> 2010-11-10 11:30:51 -0800
commited9f210568082dd6d1d8a0c92c693d574d87d545 (patch)
treed1b9a5c7862ac078064946a122dd89f05d88f38b /libs/rs/rsMutex.cpp
parentc65347f239e0adae4fe9fad5248b69a5a6d3bbe8 (diff)
Code cleanup to make formatting consistent
across all the renderscript files. Change-Id: Idf5fcc60877e44c8f074f7176e37f70b3b895a3c
Diffstat (limited to 'libs/rs/rsMutex.cpp')
-rw-r--r--libs/rs/rsMutex.cpp15
1 files changed, 5 insertions, 10 deletions
diff --git a/libs/rs/rsMutex.cpp b/libs/rs/rsMutex.cpp
index 37752f211da8..2105288218bf 100644
--- a/libs/rs/rsMutex.cpp
+++ b/libs/rs/rsMutex.cpp
@@ -20,17 +20,14 @@ using namespace android;
using namespace android::renderscript;
-Mutex::Mutex()
-{
+Mutex::Mutex() {
}
-Mutex::~Mutex()
-{
+Mutex::~Mutex() {
pthread_mutex_destroy(&mMutex);
}
-bool Mutex::init()
-{
+bool Mutex::init() {
int status = pthread_mutex_init(&mMutex, NULL);
if (status) {
LOGE("Mutex::Mutex init failure");
@@ -39,8 +36,7 @@ bool Mutex::init()
return true;
}
-bool Mutex::lock()
-{
+bool Mutex::lock() {
int status;
status = pthread_mutex_lock(&mMutex);
if (status) {
@@ -50,8 +46,7 @@ bool Mutex::lock()
return true;
}
-bool Mutex::unlock()
-{
+bool Mutex::unlock() {
int status;
status = pthread_mutex_unlock(&mMutex);
if (status) {