diff options
Diffstat (limited to 'CIAO/examples/DevGuideExamples/Messenger/Publication_exec_i.cpp')
-rw-r--r-- | CIAO/examples/DevGuideExamples/Messenger/Publication_exec_i.cpp | 80 |
1 files changed, 0 insertions, 80 deletions
diff --git a/CIAO/examples/DevGuideExamples/Messenger/Publication_exec_i.cpp b/CIAO/examples/DevGuideExamples/Messenger/Publication_exec_i.cpp deleted file mode 100644 index d99cea266c3..00000000000 --- a/CIAO/examples/DevGuideExamples/Messenger/Publication_exec_i.cpp +++ /dev/null @@ -1,80 +0,0 @@ -// -// **** Code generated by the **** -// **** Component Integrated ACE ORB (CIAO) CIDL Compiler **** -// CIAO has been developed by: -// Center for Distributed Object Computing -// Washington University -// St. Louis, MO -// USA -// http://www.cs.wustl.edu/~schmidt/doc-center.html -// CIDL Compiler has been developed by: -// Institute for Software Integrated Systems -// Vanderbilt University -// Nashville, TN -// USA -// http://www.isis.vanderbilt.edu/ -// -// Information about CIAO is available at: -// http://www.dre.vanderbilt.edu/CIAO - -#include "Publication_exec_i.h" - -namespace CIAO_Messenger_Impl -{ - //================================================================== - // Facet Executor Implementation Class: Publication_exec_i - //================================================================== - - Publication_exec_i::Publication_exec_i ( - const char* text, CORBA::UShort period) - : text_( text ), - period_( period) - { - } - - Publication_exec_i::~Publication_exec_i (void) - { - } - - // Operations from ::Publication - - char* - Publication_exec_i::text () - { - ACE_GUARD_RETURN (TAO_SYNCH_MUTEX, ace_mon, this->lock_, 0); - - return CORBA::string_dup( this->text_.c_str() ); - } - - void - Publication_exec_i::text ( - const char* text) - { - ACE_GUARD (TAO_SYNCH_MUTEX, ace_mon, this->lock_); - - this->text_ = text; - ACE_DEBUG((LM_INFO, ACE_TEXT("publication text changed to %C\n"), text )); - } - - CORBA::UShort - Publication_exec_i::period () - { - ACE_GUARD_RETURN (TAO_SYNCH_MUTEX, ace_mon, this->lock_, 0); - - return this->period_; - } - - void - Publication_exec_i::period (CORBA::UShort period) - { - ACE_GUARD (TAO_SYNCH_MUTEX, ace_mon, this->lock_); - - if ( period > 0 ) { - this->period_ = period; - ACE_DEBUG((LM_INFO, ACE_TEXT("publication period changed to %d seconds\n"), period )); - } else { - ACE_DEBUG((LM_INFO, ACE_TEXT("ignoring a negative period of %d\n"), period )); - } - } -} - |