From 14127052f16249ee56eee43dd086b800f3bfcf95 Mon Sep 17 00:00:00 2001 From: Jeff Hill Date: Sat, 2 Nov 1996 01:38:00 +0000 Subject: [PATCH] added os depen stuff --- src/include/Makefile.Unix | 3 +++ src/include/Makefile.Vx | 7 +++++++ src/include/osiMutexNOOP.h | 18 ++++++++++++++++++ 3 files changed, 28 insertions(+) create mode 100755 src/include/Makefile.Vx create mode 100644 src/include/osiMutexNOOP.h diff --git a/src/include/Makefile.Unix b/src/include/Makefile.Unix index 1dbf13d3f..7d07c63a2 100755 --- a/src/include/Makefile.Unix +++ b/src/include/Makefile.Unix @@ -11,6 +11,9 @@ INC += shareLib.h INC += createSoftLinks.sh INC += bsdProto.h INC += task_params.h +INC += osiMutexNOOP.h + +OSINC += osiSock.h include $(TOP)/config/RULES.Unix diff --git a/src/include/Makefile.Vx b/src/include/Makefile.Vx new file mode 100755 index 000000000..44fc10f87 --- /dev/null +++ b/src/include/Makefile.Vx @@ -0,0 +1,7 @@ +TOP = ../../.. +include $(TOP)/config/CONFIG_BASE + +OSINC += osiSock.h + +include $(TOP)/config/RULES.Vx + diff --git a/src/include/osiMutexNOOP.h b/src/include/osiMutexNOOP.h new file mode 100644 index 000000000..723bced13 --- /dev/null +++ b/src/include/osiMutexNOOP.h @@ -0,0 +1,18 @@ + +// +// osiMutex - OS independent mutex +// (NOOP on single threaded OS) +// +class osiMutex { +public: + // + // constructor that returns status + // (since g++ does not have exceptions) + // + int init() {return 0;} + void osiLock() {} + void osiUnlock() {} + void show (unsigned) const {} +private: +}; +