summaryrefslogtreecommitdiff
path: root/tests/TSS_Test_Errno.h
diff options
context:
space:
mode:
Diffstat (limited to 'tests/TSS_Test_Errno.h')
-rw-r--r--tests/TSS_Test_Errno.h46
1 files changed, 0 insertions, 46 deletions
diff --git a/tests/TSS_Test_Errno.h b/tests/TSS_Test_Errno.h
deleted file mode 100644
index 09aeec79f4d..00000000000
--- a/tests/TSS_Test_Errno.h
+++ /dev/null
@@ -1,46 +0,0 @@
-class Errno
-// ============================================================================
-// = TITLE
-// Define a simple Errno abstraction
-//
-// = DESCRIPTION
-// This class gets its own header file to work around AIX C++
-// compiler "features" related to template instantiation... It is
-// only used by TSS_Test.cpp
-// ============================================================================
-{
-public:
- int error (void) { return this->errno_; }
- void error (int i) { this->errno_ = i; }
-
- int line (void) { return this->lineno_; }
- void line (int l) { this->lineno_ = l; }
-
- // Errno::flags_ is a static variable, so we've got to protect it
- // with a mutex since it isn't kept in thread-specific storage.
- int flags (void) {
- ACE_MT (ACE_GUARD_RETURN (ACE_Thread_Mutex, ace_Mon, Errno::lock_, -1));
-
- return Errno::flags_;
- }
- int flags (int f)
- {
- ACE_MT (ACE_GUARD_RETURN (ACE_Thread_Mutex, ace_mon, Errno::lock_, -1));
-
- Errno::flags_ = f;
- return 0;
- }
-
-private:
- // = errno_ and lineno_ will be thread-specific data so they don't
- // need a lock.
- int errno_;
- int lineno_;
-
- static int flags_;
-#if defined (ACE_HAS_THREADS)
- // flags_ needs a lock.
- static ACE_Thread_Mutex lock_;
-#endif /* ACE_HAS_THREADS */
-};
-