summaryrefslogtreecommitdiffstats
path: root/data/mnet/Common/include/Os/JCMutex.h
diff options
context:
space:
mode:
Diffstat (limited to 'data/mnet/Common/include/Os/JCMutex.h')
-rw-r--r--data/mnet/Common/include/Os/JCMutex.h44
1 files changed, 44 insertions, 0 deletions
diff --git a/data/mnet/Common/include/Os/JCMutex.h b/data/mnet/Common/include/Os/JCMutex.h
new file mode 100644
index 0000000..8adc962
--- /dev/null
+++ b/data/mnet/Common/include/Os/JCMutex.h
@@ -0,0 +1,44 @@
+#ifndef __JCMUTEX_H__
+#define __JCMUTEX_H__
+// *******************************************************************
+//
+// (c) Copyright CISCO Systems, 2000
+// All Rights Reserved
+//
+// *******************************************************************
+
+// *******************************************************************
+//
+// Version : 1.0
+// Status : Under development
+// File : JCMutex.h
+// Author(s) : Igal Gutkin
+// Create Date : 11/06/00
+// Description : JCMutex class (Mutual-Exclusion Semapore) definition
+//
+// *******************************************************************
+
+
+#include <vxworks.h>
+#include <semlib.h>
+
+class JCMutex
+{
+public:
+ // Constructors & destructor
+ JCMutex ();
+ virtual ~JCMutex ();
+
+ // pramary methods
+ bool take ();
+ bool give ();
+
+private:
+
+// data members
+private:
+
+ SEM_ID semId_;
+};
+
+#endif //__JCMUTEX_H__ \ No newline at end of file