diff options
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 |
commit | ed9f210568082dd6d1d8a0c92c693d574d87d545 (patch) | |
tree | d1b9a5c7862ac078064946a122dd89f05d88f38b /libs/rs/rsSignal.cpp | |
parent | c65347f239e0adae4fe9fad5248b69a5a6d3bbe8 (diff) | |
download | frameworks_base-ed9f210568082dd6d1d8a0c92c693d574d87d545.zip frameworks_base-ed9f210568082dd6d1d8a0c92c693d574d87d545.tar.gz frameworks_base-ed9f210568082dd6d1d8a0c92c693d574d87d545.tar.bz2 |
Code cleanup to make formatting consistent
across all the renderscript files.
Change-Id: Idf5fcc60877e44c8f074f7176e37f70b3b895a3c
Diffstat (limited to 'libs/rs/rsSignal.cpp')
-rw-r--r-- | libs/rs/rsSignal.cpp | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/libs/rs/rsSignal.cpp b/libs/rs/rsSignal.cpp index 9239bfd..ccd20b9 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); |