Changeset 241 in Sophya for trunk/SophyaLib/SysTools
- Timestamp:
- Apr 21, 1999, 3:12:11 PM (26 years ago)
- Location:
- trunk/SophyaLib/SysTools
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaLib/SysTools/ctimer.cc
r219 r241 1 1 // 2 // $Id: ctimer.cc,v 1. 1.1.1 1999-04-09 17:57:04ansari Exp $2 // $Id: ctimer.cc,v 1.2 1999-04-21 13:11:59 ansari Exp $ 3 3 // 4 4 5 #include " defs.h"5 #include "machdefs.h" 6 6 #include "ctimer.h" 7 7 … … 42 42 cpu0 = cpuSplit = clock(); 43 43 elapse0 = elapseSplit = time(0); 44 END_CONSTRUCTOR45 44 } 46 45 -
trunk/SophyaLib/SysTools/ctimer.h
r219 r241 1 1 // This may look like C code, but it is really -*- C++ -*- 2 2 // 3 // $Id: ctimer.h,v 1. 1.1.1 1999-04-09 17:57:04ansari Exp $3 // $Id: ctimer.h,v 1.2 1999-04-21 13:12:00 ansari Exp $ 4 4 // 5 5 … … 12 12 #include <iostream.h> 13 13 #include <stdio.h> 14 #include " peida.h"14 #include "machdefs.h" 15 15 16 16 // <summary> Permet de chronometrer des fonctions. </summary> … … 22 22 23 23 // La macro SPLITTIME lui permet d'afficher des temps partiels. 24 class Timer EXC_AWARE{24 class Timer { 25 25 public: 26 26 // L'objet memorise le temps CPU et l'heure, et le nom donne -
trunk/SophyaLib/SysTools/pdlmgr.h
r230 r241 6 6 #define PDYNLINKMGR_SEEN 7 7 8 #include " defs.h"8 #include "machdefs.h" 9 9 #include <string> 10 10 #if defined(__KCC__) -
trunk/SophyaLib/SysTools/periodic.cc
r219 r241 4 4 /* LAL/IN2P3 (Orsay) DAPNIA/CEA (Saclay) */ 5 5 6 #include " defs.h"6 #include "machdefs.h" 7 7 #include <signal.h> 8 8 #include <unistd.h> -
trunk/SophyaLib/SysTools/periodic.h
r219 r241 4 4 #define PERIODIC_H 5 5 6 #include " defs.h"6 #include "machdefs.h" 7 7 #include <list> 8 8 #if defined(__KCC__) -
trunk/SophyaLib/SysTools/psighand.cc
r219 r241 5 5 #include <signal.h> 6 6 #include "psighand.h" 7 #include "perrors.h" 7 #include "pexceptions.h" 8 9 using namespace PlanckDPC; 8 10 9 11 static bool sigprstate[5] = {false, false, false, false}; … … 96 98 case SIGFPE : 97 99 puts("PeidaProcessSignal: ###Signal SIGFPE catched, throw catchedSIGFPE ###"); 98 THROW(catchedSIGFPE);100 throw CaughtSignalExc("SIGFPE"); 99 101 case SIGSEGV : 100 102 puts("PeidaProcessSignal: ###Signal SIGSEGV catched, throw catchedSIGSEGV ###"); 101 THROW(catchedSIGSEGV);103 throw CaughtSignalExc("SIGSEGV"); 102 104 case SIGINT : 103 105 puts("PeidaProcessSignal: ###Signal SIGINT catched, throw catchedSIGINT ###"); 104 THROW(catchedSIGINT);106 throw CaughtSignalExc("SIGINT"); 105 107 case SIGQUIT : 106 108 puts("PeidaProcessSignal: ###Signal SIGQUIT catched, throw catchedSIGQUIT ###"); 107 THROW(catchedSIGQUIT);109 throw CaughtSignalExc("SIGQUIT"); 108 110 case SIGUSR1 : 109 111 puts("PeidaProcessSignal: ###Signal SIGUSR1 catched, throw catchedSIGUSR1 ###"); 110 THROW(catchedSIGQUIT);112 throw CaughtSignalExc("SIGUSR1"); 111 113 case SIGUSR2 : 112 114 puts("PeidaProcessSignal: ###Signal SIGUSR2 catched, throw catchedSIGUSR2 ###"); 113 THROW(catchedSIGQUIT);115 throw CaughtSignalExc("SIGUSR2"); 114 116 default : 115 117 printf("PeidaProcessSignal: ###Signal %d catched, throw inconsistentErr ### \n", s); 116 THROW(inconsistentErr);118 throw CaughtSignalExc("???"); 117 119 } 118 120 -
trunk/SophyaLib/SysTools/psighand.h
r219 r241 5 5 #define PSIGHANDLE_SEEN 6 6 7 #include " defs.h"7 #include "machdefs.h" 8 8 void PeidaConfigureSignalhandling(bool cfpe=false, bool csegv=false, bool cquit=false, bool cusr1=false, bool cusr2=false); 9 9 #endif
Note:
See TracChangeset
for help on using the changeset viewer.