summaryrefslogtreecommitdiff
path: root/TAO/tao/TkResource_Factory.cpp
blob: 4c1926bb2462de41a1fede342d98690241374677 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
//$Id$

#include /**/ "TkResource_Factory.h"
#include /**/ "debug.h"
#include /**/ "ace/TkReactor.h"

ACE_RCSID(tao, TkResource_Factory, "$Id$");


namespace TAO
{

  TkResource_Factory::TkResource_Factory ():
    reactor_impl_( 0 )
  {
  }

  ACE_Reactor_Impl *
  TkResource_Factory::reactor_impl (void)
  {
    if (!this->reactor_impl_)
    {
      ACE_NEW_RETURN (this->reactor_impl_,
                      ACE_TkReactor (),
                      0);

      if (TAO_debug_level > 0)
        ACE_DEBUG ((LM_DEBUG,
                    "TAO (%P|%t) - ACE_TkReactor created \n"));
    }

    return this->reactor_impl_;
  }
}