summaryrefslogtreecommitdiff
path: root/cppe/include/IceE/AbstractMutex.h
diff options
context:
space:
mode:
authorBenoit Foucher <benoit@zeroc.com>2008-06-06 11:39:41 +0200
committerBenoit Foucher <benoit@zeroc.com>2008-06-06 11:39:41 +0200
commit966061fcb0e2ec4d5d7ed9c6c280eefb27209da7 (patch)
tree078246631fb864d9e908108d69917b18c6303c16 /cppe/include/IceE/AbstractMutex.h
parentRemoved SL code (diff)
downloadice-966061fcb0e2ec4d5d7ed9c6c280eefb27209da7.tar.bz2
ice-966061fcb0e2ec4d5d7ed9c6c280eefb27209da7.tar.xz
ice-966061fcb0e2ec4d5d7ed9c6c280eefb27209da7.zip
Removed Ice-E
Diffstat (limited to 'cppe/include/IceE/AbstractMutex.h')
-rw-r--r--cppe/include/IceE/AbstractMutex.h115
1 files changed, 0 insertions, 115 deletions
diff --git a/cppe/include/IceE/AbstractMutex.h b/cppe/include/IceE/AbstractMutex.h
deleted file mode 100644
index 89160f60000..00000000000
--- a/cppe/include/IceE/AbstractMutex.h
+++ /dev/null
@@ -1,115 +0,0 @@
-// **********************************************************************
-//
-// Copyright (c) 2003-2007 ZeroC, Inc. All rights reserved.
-//
-// This copy of Ice-E is licensed to you under the terms described in the
-// ICEE_LICENSE file included in this distribution.
-//
-// **********************************************************************
-
-#ifndef ICEE_ABSTRACT_MUTEX_H
-#define ICEE_ABSTRACT_MUTEX_H
-
-#include <IceE/Config.h>
-#include <IceE/Lock.h>
-
-namespace IceUtil
-{
-
-class AbstractMutex
-{
-public:
-
- typedef LockT<AbstractMutex> Lock;
- typedef TryLockT<AbstractMutex> TryLock;
-
- virtual void lock() const = 0;
- virtual void unlock() const = 0;
- virtual bool tryLock() const = 0;
-};
-
-template <typename T>
-class AbstractMutexI : public AbstractMutex, public T
-{
-public:
-
- typedef LockT<AbstractMutexI> Lock;
- typedef TryLockT<AbstractMutexI> TryLock;
-
- virtual void lock() const
- {
- T::lock();
- }
-
- virtual void unlock() const
- {
- T::unlock();
- }
-
- virtual bool tryLock() const
- {
- return T::tryLock();
- }
-
- virtual ~AbstractMutexI()
- {}
-};
-
-template <typename T>
-class AbstractMutexReadI : public AbstractMutex, public T
-{
-public:
-
- typedef LockT<AbstractMutexReadI> Lock;
- typedef TryLockT<AbstractMutexReadI> TryLock;
-
- virtual void lock() const
- {
- T::readLock();
- }
-
- virtual void unlock() const
- {
- T::unlock();
- }
-
- virtual bool tryLock() const
- {
- return T::tryReadLock();
- }
-
- virtual ~AbstractMutexReadI()
- {}
-};
-
-template <typename T>
-class AbstractMutexWriteI : public AbstractMutex, public T
-{
-public:
-
- typedef LockT<AbstractMutexWriteI> Lock;
- typedef TryLockT<AbstractMutexWriteI> TryLock;
-
- virtual void lock() const
- {
- T::writeLock();
- }
-
- virtual void unlock() const
- {
- T::unlock();
- }
-
- virtual bool tryLock() const
- {
- return T::tryWriteLock();
- }
-
- virtual ~AbstractMutexWriteI()
- {}
-};
-
-
-}
-
-#endif