diff options
Diffstat (limited to 'include/m_system.h')
-rw-r--r-- | include/m_system.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/include/m_system.h b/include/m_system.h index affe7bfa25..6c2fc6e5b5 100644 --- a/include/m_system.h +++ b/include/m_system.h @@ -257,6 +257,23 @@ public: };
///////////////////////////////////////////////////////////////////////////////
+// basic class for classes with usage counter
+
+class MIR_CORE_EXPORT MShareable : public MNonCopyable
+{
+ unsigned volatile m_iUseCount;
+
+protected:
+ MShareable();
+ virtual ~MShareable();
+
+public:
+ void Acquire();
+ void Release();
+};
+
+
+///////////////////////////////////////////////////////////////////////////////
// general lists' templates
#define NumericKeySortT -1
|