//
// Crash_Task.cpp,v 1.1 2001/04/08 03:58:43 coryan Exp
//

#include "Crash_Task.h"

ACE_RCSID(Crash_On_Write, Crash_Task, "Crash_Task.cpp,v 1.1 2001/04/08 03:58:43 coryan Exp")

Crash_Task::Crash_Task (ACE_Thread_Manager *thr_mgr,
                        const ACE_Time_Value &running_time)
  : ACE_Task_Base (thr_mgr)
  , running_time_ (running_time)
{
}

int
Crash_Task::svc (void)
{
  ACE_DEBUG ((LM_DEBUG, "(%P|%t) Starting crash task\n"));
  ACE_OS::sleep (this->running_time_);
  ACE_DEBUG ((LM_DEBUG, "(%P|%t) Sleep done, crashing the server\n"));
  ACE_DEBUG ((LM_DEBUG, "%a"));

  return 0;
}
