summaryrefslogtreecommitdiff
path: root/ACE/TAO/DevGuideExamples/Multithreading/GracefulShutdown/MessengerShutdownTimer.cpp
blob: 2672ea53671a0a5620bf6c74bc2156f811a3a1f9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/* -*- C++ -*- $Id$ */

#include "MessengerShutdownTimer.h"

MessengerShutdownTimer::MessengerShutdownTimer (CORBA::ORB_ptr orb)
  : orb_(CORBA::ORB::_duplicate(orb))
{
}

int MessengerShutdownTimer::handle_timeout (
  const ACE_Time_Value &,
  const void*)
{
  ACE_DEBUG((LM_DEBUG, "In MessengerShutdownTimer::handle_timeout\n"));
  orb_->shutdown (false);
  return 0;
}