aboutsummaryrefslogtreecommitdiffstats
path: root/include/mutex.h
diff options
context:
space:
mode:
authorlloyd <[email protected]>2006-06-25 15:23:19 +0000
committerlloyd <[email protected]>2006-06-25 15:23:19 +0000
commit7a259add43ce9ad6ea30fcbb77ac7bca932db211 (patch)
treec1d4857694ddd3bc4709c54337cd8fa76669e6c5 /include/mutex.h
parenta495fd2e01430a74833d667b6fec0a2cc4b23be5 (diff)
Support named mutexes outside of the global library state.
Alter the AEP engine to use one in favor of a static Mutex pointer. Fix a stupid typo in an exception message.
Diffstat (limited to 'include/mutex.h')
-rw-r--r--include/mutex.h20
1 files changed, 16 insertions, 4 deletions
diff --git a/include/mutex.h b/include/mutex.h
index 30e7b231f..48d1ea637 100644
--- a/include/mutex.h
+++ b/include/mutex.h
@@ -22,6 +22,16 @@ class Mutex
};
/*************************************************
+* Mutex Factory *
+*************************************************/
+class Mutex_Factory
+ {
+ public:
+ virtual Mutex* make();
+ virtual ~Mutex_Factory() {}
+ };
+
+/*************************************************
* Mutex Holding Class *
*************************************************/
class Mutex_Holder
@@ -34,13 +44,15 @@ class Mutex_Holder
};
/*************************************************
-* Mutex Factory *
+* Named Mutex Holder *
*************************************************/
-class Mutex_Factory
+class Named_Mutex_Holder
{
public:
- virtual Mutex* make();
- virtual ~Mutex_Factory() {}
+ Named_Mutex_Holder(const std::string&);
+ ~Named_Mutex_Holder();
+ private:
+ const std::string mutex_name;
};
}