X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=src%2Fmojo%2Fpublic%2Fcpp%2Futility%2Flib%2Fthread.cc;h=a248b1a52d437b2ec69455fd886cbc1c0ed15dbb;hb=1afa4dd80ef85af7c90efaea6959db1d92330844;hp=da33497df427844f74c99d4b98c34ab75e2bdf8b;hpb=90762837333c13ccf56f2ad88e4481fc71e8d281;p=platform%2Fframework%2Fweb%2Fcrosswalk.git diff --git a/src/mojo/public/cpp/utility/lib/thread.cc b/src/mojo/public/cpp/utility/lib/thread.cc index da33497..a248b1a 100644 --- a/src/mojo/public/cpp/utility/lib/thread.cc +++ b/src/mojo/public/cpp/utility/lib/thread.cc @@ -8,18 +8,11 @@ namespace mojo { -Thread::Thread() - : options_(), - thread_(), - started_(false), - joined_(false) { +Thread::Thread() : options_(), thread_(), started_(false), joined_(false) { } Thread::Thread(const Options& options) - : options_(options), - thread_(), - started_(false), - joined_(false) { + : options_(options), thread_(), started_(false), joined_(false) { } Thread::~Thread() { @@ -32,7 +25,8 @@ void Thread::Start() { assert(!joined_); pthread_attr_t attr; - int rv MOJO_ALLOW_UNUSED = pthread_attr_init(&attr); + int rv = pthread_attr_init(&attr); + MOJO_ALLOW_UNUSED_LOCAL(rv); assert(rv == 0); // Non-default stack size? @@ -55,7 +49,8 @@ void Thread::Join() { assert(!joined_); joined_ = true; - int rv MOJO_ALLOW_UNUSED = pthread_join(thread_, NULL); + int rv = pthread_join(thread_, NULL); + MOJO_ALLOW_UNUSED_LOCAL(rv); assert(rv == 0); }