diff options
author | William R. Otte <wotte@dre.vanderbilt.edu> | 2008-03-04 14:51:23 +0000 |
---|---|---|
committer | William R. Otte <wotte@dre.vanderbilt.edu> | 2008-03-04 14:51:23 +0000 |
commit | 99aa8c60282c7b8072eb35eb9ac815702f5bf586 (patch) | |
tree | bda96bf8c3a4c2875a083d7b16720533c8ffeaf4 /ACE/ace/Module.inl | |
parent | c4078c377d74290ebe4e66da0b4975da91732376 (diff) | |
download | ATCD-99aa8c60282c7b8072eb35eb9ac815702f5bf586.tar.gz |
undoing accidental deletion
Diffstat (limited to 'ACE/ace/Module.inl')
-rw-r--r-- | ACE/ace/Module.inl | 65 |
1 files changed, 65 insertions, 0 deletions
diff --git a/ACE/ace/Module.inl b/ACE/ace/Module.inl new file mode 100644 index 00000000000..483d436aa69 --- /dev/null +++ b/ACE/ace/Module.inl @@ -0,0 +1,65 @@ +// -*- C++ -*- +// +// $Id$ + +#include "ace/OS_NS_string.h" + +ACE_BEGIN_VERSIONED_NAMESPACE_DECL + +template <ACE_SYNCH_DECL> ACE_INLINE void * +ACE_Module<ACE_SYNCH_USE>::arg (void) const +{ + ACE_TRACE ("ACE_Module<ACE_SYNCH_USE>::arg"); + return this->arg_; +} + +template <ACE_SYNCH_DECL> ACE_INLINE void +ACE_Module<ACE_SYNCH_USE>::arg (void *a) +{ + ACE_TRACE ("ACE_Module<ACE_SYNCH_USE>::arg"); + this->arg_ = a; +} + +template <ACE_SYNCH_DECL> ACE_INLINE const ACE_TCHAR * +ACE_Module<ACE_SYNCH_USE>::name (void) const +{ + ACE_TRACE ("ACE_Module<ACE_SYNCH_USE>::name"); + return this->name_; +} + +template <ACE_SYNCH_DECL> ACE_INLINE void +ACE_Module<ACE_SYNCH_USE>::name (const ACE_TCHAR *n) +{ + ACE_TRACE ("ACE_Module<ACE_SYNCH_USE>::name"); + ACE_OS::strsncpy (this->name_, n, MAXPATHLEN); +} + +template <ACE_SYNCH_DECL> ACE_INLINE ACE_Task<ACE_SYNCH_USE> * +ACE_Module<ACE_SYNCH_USE>::writer (void) +{ + ACE_TRACE ("ACE_Module<ACE_SYNCH_USE>::writer"); + return this->q_pair_[1]; +} + +template <ACE_SYNCH_DECL> ACE_INLINE ACE_Task<ACE_SYNCH_USE> * +ACE_Module<ACE_SYNCH_USE>::reader (void) +{ + ACE_TRACE ("ACE_Module<ACE_SYNCH_USE>::reader"); + return this->q_pair_[0]; +} + +template <ACE_SYNCH_DECL> ACE_INLINE ACE_Module<ACE_SYNCH_USE> * +ACE_Module<ACE_SYNCH_USE>::next (void) +{ + ACE_TRACE ("ACE_Module<ACE_SYNCH_USE>::next"); + return this->next_; +} + +template <ACE_SYNCH_DECL> ACE_INLINE void +ACE_Module<ACE_SYNCH_USE>::next (ACE_Module<ACE_SYNCH_USE> *m) +{ + ACE_TRACE ("ACE_Module<ACE_SYNCH_USE>::next"); + this->next_ = m; +} + +ACE_END_VERSIONED_NAMESPACE_DECL |