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

Unified Diff: mojo/edk/util/mutex.h

Issue 1435043002: EDK: Sprinkle some more |final| secret sauce. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 1 month 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/edk/util/cond_var.h ('k') | mojo/edk/util/ref_ptr.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/edk/util/mutex.h
diff --git a/mojo/edk/util/mutex.h b/mojo/edk/util/mutex.h
index 381ce7adc72b92c3506d009d3787e0ec7ca8271a..0776376b5e4c0c1773feacea725c15e067e0e7fd 100644
--- a/mojo/edk/util/mutex.h
+++ b/mojo/edk/util/mutex.h
@@ -21,7 +21,7 @@ namespace util {
class CondVar;
-class MOJO_LOCKABLE Mutex {
+class MOJO_LOCKABLE Mutex final {
public:
#if defined(NDEBUG) && !defined(DCHECK_ALWAYS_ON)
Mutex() { pthread_mutex_init(&impl_, nullptr); }
@@ -63,7 +63,7 @@ class MOJO_LOCKABLE Mutex {
// MutexLocker -----------------------------------------------------------------
-class MOJO_SCOPED_LOCKABLE MutexLocker {
+class MOJO_SCOPED_LOCKABLE MutexLocker final {
public:
explicit MutexLocker(Mutex* mutex) MOJO_EXCLUSIVE_LOCK_FUNCTION(mutex)
: mutex_(mutex) {
« no previous file with comments | « mojo/edk/util/cond_var.h ('k') | mojo/edk/util/ref_ptr.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698