diff options
Diffstat (limited to 'gcc-4.4.0/gcc/testsuite/g++.dg/thread-ann/thread_annot_common.h')
-rw-r--r-- | gcc-4.4.0/gcc/testsuite/g++.dg/thread-ann/thread_annot_common.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/gcc-4.4.0/gcc/testsuite/g++.dg/thread-ann/thread_annot_common.h b/gcc-4.4.0/gcc/testsuite/g++.dg/thread-ann/thread_annot_common.h index 5344fed0e..192c84e84 100644 --- a/gcc-4.4.0/gcc/testsuite/g++.dg/thread-ann/thread_annot_common.h +++ b/gcc-4.4.0/gcc/testsuite/g++.dg/thread-ann/thread_annot_common.h @@ -74,4 +74,11 @@ class SCOPED_LOCKABLE ReaderMutexLock { ~ReaderMutexLock() UNLOCK_FUNCTION(); }; +class SCOPED_LOCKABLE ReleasableMutexLock { + public: + explicit ReleasableMutexLock(Mutex *mu) EXCLUSIVE_LOCK_FUNCTION(mu); + ~ReleasableMutexLock() UNLOCK_FUNCTION(); + void Release() UNLOCK_FUNCTION(); +}; + #endif // THREAD_ANNOT_COMMON_H |