summaryrefslogtreecommitdiff
path: root/examples/Threads/TSS_Data.h
diff options
context:
space:
mode:
Diffstat (limited to 'examples/Threads/TSS_Data.h')
-rw-r--r--examples/Threads/TSS_Data.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/examples/Threads/TSS_Data.h b/examples/Threads/TSS_Data.h
index fb8e6312d14..03fd6c8ff50 100644
--- a/examples/Threads/TSS_Data.h
+++ b/examples/Threads/TSS_Data.h
@@ -4,17 +4,21 @@
//
// = LIBRARY
// examples
-//
+//
// = FILENAME
// TSS_Data.cpp
//
// = AUTHOR
// Prashant Jain and Doug Schmidt
-//
+//
// ============================================================================
#include "ace/Singleton.h"
+#if !defined (ACE_LACKS_PRAGMA_ONCE)
+# pragma once
+#endif /* ACE_LACKS_PRAGMA_ONCE */
+
class TSS_Data
// = TITLE
// Data that is stored in thread-specific storage.
@@ -22,7 +26,7 @@ class TSS_Data
public:
void *data (void) { return this->data_; }
void data (void *v) { this->data_ = v; }
-
+
private:
// = data_ will be thread-specific data so it doesn't need a lock.
void *data_;