Merge pull request #1844 from jrw972/monterey
[ACE_TAO.git] / TAO / tests / NestedUpcall / MT_Client_Test / MT_Object_i.cpp
blob961ccb58ae58a3daba675414c0f45b14599cba7f
2 //=============================================================================
3 /**
4 * @file MT_Object_i.cpp
6 * This class implements the Object A of the
7 * Nested Upcalls - MT Client test.
9 * @author Michael Kircher
11 //=============================================================================
13 #include "MT_Object_i.h"
15 #include "tao/Exception.h"
17 #define MAX_HOP_COUNT 20
19 // CTOR
20 MT_Object_i::MT_Object_i (void)
24 // DTOR
25 MT_Object_i::~MT_Object_i (void)
30 CORBA::Long
31 MT_Object_i::yadda (CORBA::Long hop_count,
32 MT_Object_ptr partner)
34 #if 0
35 ACE_DEBUG ((LM_DEBUG,
36 "(%P|%t) MT_Object_i::yadda () hop count = %d\n",
37 hop_count));
38 #endif /*if 0*/
40 if (hop_count < MAX_HOP_COUNT)
42 if (partner != 0)
43 return partner->yadda (hop_count + 1,
44 this->_this ()) + 1;
47 return 0;