Merge pull request #2222 from jwillemsen/jwi-dllexportwarning
[ACE_TAO.git] / TAO / DevGuideExamples / AMH_AMI / inner_i.cpp
blob5ac86f746f227a848952ce82dc8b95f2c3850297
1 /* -*- C++ -*- */
2 #include "amh_ami_pch.h"
4 #include "inner_i.h"
5 #include "ace/OS_NS_unistd.h"
7 Inner_i::Inner_i (int d)
8 : divisor_ (d)
12 char *
13 Inner_i::answer (const char * question)
15 ACE_UNUSED_ARG (question); // doesn't matter
17 CORBA::String_var answer =
18 CORBA::string_dup ("I didn't know dogs could talk!");
20 int delay = 5/this->divisor_; // throw exception if divisor = 0
22 ACE_OS::sleep(delay); // make the caller wait a bit
23 return answer._retn();