diff options
Diffstat (limited to 'ACE/ace/TSS_T.inl')
-rw-r--r-- | ACE/ace/TSS_T.inl | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/ACE/ace/TSS_T.inl b/ACE/ace/TSS_T.inl new file mode 100644 index 00000000000..1d74573c658 --- /dev/null +++ b/ACE/ace/TSS_T.inl @@ -0,0 +1,42 @@ +// -*- C++ -*- +// +// $Id$ + +#if !(defined (ACE_HAS_THREADS) && (defined (ACE_HAS_THREAD_SPECIFIC_STORAGE) || defined (ACE_HAS_TSS_EMULATION))) + +ACE_BEGIN_VERSIONED_NAMESPACE_DECL + +template <class TYPE> ACE_INLINE +ACE_TSS<TYPE>::ACE_TSS (TYPE *type) + : type_ (type) +{ +} + +template <class TYPE> ACE_INLINE int +ACE_TSS<TYPE>::ts_init (void) +{ + return 0; +} + +template <class TYPE> ACE_INLINE TYPE * +ACE_TSS<TYPE>::ts_object (void) const +{ + return this->type_; +} + +template <class TYPE> ACE_INLINE TYPE * +ACE_TSS<TYPE>::ts_object (TYPE *type) +{ + this->type_ = type; + return this->type_; +} + +template <class TYPE> ACE_INLINE TYPE * +ACE_TSS<TYPE>::ts_get (void) const +{ + return this->type_; +} + +ACE_END_VERSIONED_NAMESPACE_DECL + +#endif /* ! (defined (ACE_HAS_THREADS) && (defined (ACE_HAS_THREAD_SPECIFIC_STORAGE) || defined (ACE_HAS_TSS_EMULATION))) */ |