From ed9f210568082dd6d1d8a0c92c693d574d87d545 Mon Sep 17 00:00:00 2001 From: Alex Sakhartchouk Date: Tue, 9 Nov 2010 17:00:54 -0800 Subject: Code cleanup to make formatting consistent across all the renderscript files. Change-Id: Idf5fcc60877e44c8f074f7176e37f70b3b895a3c --- libs/rs/rsSignal.cpp | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) (limited to 'libs/rs/rsSignal.cpp') diff --git a/libs/rs/rsSignal.cpp b/libs/rs/rsSignal.cpp index 9239bfddf7e9..ccd20b95c100 100644 --- a/libs/rs/rsSignal.cpp +++ b/libs/rs/rsSignal.cpp @@ -20,19 +20,16 @@ using namespace android; using namespace android::renderscript; -Signal::Signal() -{ +Signal::Signal() { mSet = true; } -Signal::~Signal() -{ +Signal::~Signal() { pthread_mutex_destroy(&mMutex); pthread_cond_destroy(&mCondition); } -bool Signal::init() -{ +bool Signal::init() { int status = pthread_mutex_init(&mMutex, NULL); if (status) { LOGE("LocklessFifo mutex init failure"); @@ -49,8 +46,7 @@ bool Signal::init() return true; } -void Signal::set() -{ +void Signal::set() { int status; status = pthread_mutex_lock(&mMutex); @@ -72,8 +68,7 @@ void Signal::set() } } -void Signal::wait() -{ +void Signal::wait() { int status; status = pthread_mutex_lock(&mMutex); -- cgit v1.2.3-59-g8ed1b