aboutsummaryrefslogtreecommitdiffstats
path: root/include/mutex.h
diff options
context:
space:
mode:
authorlloyd <[email protected]>2006-07-07 19:50:57 +0000
committerlloyd <[email protected]>2006-07-07 19:50:57 +0000
commit3d4734a8aad130f36cf61a39eb8dfcca0eccb816 (patch)
tree0b4fea23435a503b590efddb3daca677b4738867 /include/mutex.h
parentc332c81d0b90ba0db7d628eff0b77a381a8bf765 (diff)
Make Mutex_Factory an abstract class, move the creation of the no-op
Default_Mutex to the new Default_Mutex_Factory
Diffstat (limited to 'include/mutex.h')
-rw-r--r--include/mutex.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/include/mutex.h b/include/mutex.h
index 48d1ea637..2d716014f 100644
--- a/include/mutex.h
+++ b/include/mutex.h
@@ -27,11 +27,20 @@ class Mutex
class Mutex_Factory
{
public:
- virtual Mutex* make();
+ virtual Mutex* make() = 0;
virtual ~Mutex_Factory() {}
};
/*************************************************
+* Default Mutex Factory *
+*************************************************/
+class Default_Mutex_Factory : public Mutex_Factory
+ {
+ public:
+ Mutex* make();
+ };
+
+/*************************************************
* Mutex Holding Class *
*************************************************/
class Mutex_Holder