aboutsummaryrefslogtreecommitdiff
path: root/src/include/fst/lock.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/fst/lock.h')
-rw-r--r--src/include/fst/lock.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/include/fst/lock.h b/src/include/fst/lock.h
index 3adf7df..329015d 100644
--- a/src/include/fst/lock.h
+++ b/src/include/fst/lock.h
@@ -16,6 +16,9 @@
//
// \file
// Google-compatibility locking declarations and inline definitions
+//
+// Classes and functions here are no-ops (by design); proper locking requires
+// actual implementation.
#ifndef FST_LIB_LOCK_H__
#define FST_LIB_LOCK_H__
@@ -61,6 +64,14 @@ class MutexLock {
DISALLOW_COPY_AND_ASSIGN(MutexLock);
};
+class ReaderMutexLock {
+ public:
+ ReaderMutexLock(Mutex *) {}
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(ReaderMutexLock);
+};
+
// Reference counting - single-thread implementation
class RefCounter {
public: