Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(234)

Unified Diff: mojo/public/cpp/utility/lib/thread.cc

Issue 1755003002: Remove MOJO_DISALLOW_COPY_AND_ASSIGN and MOJO_ALLOW_UNUSED_LOCAL. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « mojo/public/cpp/system/tests/macros_unittest.cc ('k') | mojo/public/cpp/utility/mutex.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/public/cpp/utility/lib/thread.cc
diff --git a/mojo/public/cpp/utility/lib/thread.cc b/mojo/public/cpp/utility/lib/thread.cc
index 40f0bdd680c508b8af40d642776531483821f541..d9c5e523569e8b6ae5c9843f8932cc043784ecfd 100644
--- a/mojo/public/cpp/utility/lib/thread.cc
+++ b/mojo/public/cpp/utility/lib/thread.cc
@@ -6,6 +6,8 @@
#include <assert.h>
+#include "base/compiler_specific.h"
+
namespace mojo {
Thread::Thread() : options_(), thread_(), started_(false), joined_(false) {
@@ -26,7 +28,7 @@ void Thread::Start() {
pthread_attr_t attr;
int rv = pthread_attr_init(&attr);
- MOJO_ALLOW_UNUSED_LOCAL(rv);
+ ALLOW_UNUSED_LOCAL(rv);
assert(rv == 0);
// Non-default stack size?
@@ -50,7 +52,7 @@ void Thread::Join() {
joined_ = true;
int rv = pthread_join(thread_, nullptr);
- MOJO_ALLOW_UNUSED_LOCAL(rv);
+ ALLOW_UNUSED_LOCAL(rv);
assert(rv == 0);
}
« no previous file with comments | « mojo/public/cpp/system/tests/macros_unittest.cc ('k') | mojo/public/cpp/utility/mutex.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698