aboutsummaryrefslogtreecommitdiffstats
path: root/libc/private/ScopedPthreadMutexLocker.h
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2014-05-09 19:12:08 -0700
committerElliott Hughes <enh@google.com>2014-05-09 19:12:08 -0700
commit8eac9af24ea7e570e0b297bcd6ac8a46ba3ecc39 (patch)
treed69e6b95bccca6e095b5e320198c552c9ee0e398 /libc/private/ScopedPthreadMutexLocker.h
parentb2c3c803f0f4a50acfdc31eb28bd83b48a0026fe (diff)
downloadandroid_bionic-8eac9af24ea7e570e0b297bcd6ac8a46ba3ecc39.tar.gz
android_bionic-8eac9af24ea7e570e0b297bcd6ac8a46ba3ecc39.tar.bz2
android_bionic-8eac9af24ea7e570e0b297bcd6ac8a46ba3ecc39.zip
Bring in google3-style DISALLOW_* macros.
I've been meaning to do this for a very long time... Change-Id: Ia8c16eee7c026c3c9505399948485fb778fb0152
Diffstat (limited to 'libc/private/ScopedPthreadMutexLocker.h')
-rw-r--r--libc/private/ScopedPthreadMutexLocker.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/libc/private/ScopedPthreadMutexLocker.h b/libc/private/ScopedPthreadMutexLocker.h
index 06b8e37b2..43dbdc115 100644
--- a/libc/private/ScopedPthreadMutexLocker.h
+++ b/libc/private/ScopedPthreadMutexLocker.h
@@ -19,6 +19,8 @@
#include <pthread.h>
+#include "bionic_macros.h"
+
class ScopedPthreadMutexLocker {
public:
explicit ScopedPthreadMutexLocker(pthread_mutex_t* mu) : mu_(mu) {
@@ -32,9 +34,7 @@ class ScopedPthreadMutexLocker {
private:
pthread_mutex_t* mu_;
- // Disallow copy and assignment.
- ScopedPthreadMutexLocker(const ScopedPthreadMutexLocker&);
- void operator=(const ScopedPthreadMutexLocker&);
+ DISALLOW_COPY_AND_ASSIGN(ScopedPthreadMutexLocker);
};
#endif // SCOPED_PTHREAD_MUTEX_LOCKER_H