summaryrefslogtreecommitdiff
path: root/src/programchain.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/programchain.cpp')
-rw-r--r--src/programchain.cpp25
1 files changed, 4 insertions, 21 deletions
diff --git a/src/programchain.cpp b/src/programchain.cpp
index 4e53ac8..6120d58 100644
--- a/src/programchain.cpp
+++ b/src/programchain.cpp
@@ -1,27 +1,10 @@
1/***************************************************************************
2 programchain.cpp - description
3 -------------------
4 begin : Sat Sep 6 2003
5 copyright : (C) 2003 by Mike Buland
6 email : eichlan@yf-soft.com
7 ***************************************************************************/
8
9/***************************************************************************
10 * *
11 * This program is free software; you can redistribute it and/or modify *
12 * it under the terms of the GNU General Public License as published by *
13 * the Free Software Foundation; either version 2 of the License, or *
14 * (at your option) any later version. *
15 * *
16 ***************************************************************************/
17
18#include <stdlib.h> 1#include <stdlib.h>
19#include "programchain.h" 2#include "programchain.h"
20 3
21ProgramChain::ProgramChain() 4ProgramChain::ProgramChain() :
5 xLog( MultiLog::getInstance() )
22{ 6{
23 pLog = MultiLog::getLog(); 7 xLog.LineLog( MultiLog::LStatus, "Program Chain Initialized." );
24 pLog->LineLog( MultiLog::LStatus, "Program Chain Initialized." );
25} 8}
26 9
27ProgramChain::~ProgramChain() 10ProgramChain::~ProgramChain()
@@ -62,7 +45,7 @@ bool ProgramChain::execChainOnce()
62 { 45 {
63 if( ((ProgramLink *)lLink[j])->timeSlice() == false ) 46 if( ((ProgramLink *)lLink[j])->timeSlice() == false )
64 { 47 {
65 pLog->LineLog( MultiLog::LInfo, "Shutting down due to signal from link #%d", j ); 48 xLog.LineLog( MultiLog::LInfo, "Shutting down due to signal from link #%d", j );
66 emergencyShutdown(); 49 emergencyShutdown();
67 return false; 50 return false;
68 } 51 }