Changes to attempt to silence bcc64x
[ACE_TAO.git] / TAO / DevGuideExamples / Multithreading / ThreadPool / Messenger_i.cpp
blob745132f4916100a8ed65567f70a4e16472811cb3
1 /* -*- C++ -*- */
3 // ****** Code generated by the The ACE ORB (TAO) IDL Compiler *******
4 // TAO and the TAO IDL Compiler have been developed by the Center for
5 // Distributed Object Computing at Washington University, St. Louis.
6 //
7 // Information about TAO is available at:
8 // http://www.dre.vanderbilt.edu/~schmidt/TAO.html
10 #include "Messenger_i.h"
11 #include "ace/Thread.h"
12 #include <iostream>
14 #include <sstream>
16 // Implementation skeleton constructor
17 Messenger_i::Messenger_i ()
21 // Implementation skeleton destructor
22 Messenger_i::~Messenger_i ()
26 CORBA::Boolean Messenger_i::send_message (
27 const char* /*user_name*/,
28 const char* /*subject*/,
29 char *& message
32 CORBA::string_free(message);
34 std::ostringstream ostr;
35 ostr << "Message handled on thread " << ACE_Thread::self();
36 message = CORBA::string_dup(ostr.str().c_str());
37 return true;