Changeset 241 in Sophya for trunk/SophyaLib/SysTools


Ignore:
Timestamp:
Apr 21, 1999, 3:12:11 PM (26 years ago)
Author:
ansari
Message:

ppersist + pexc

Location:
trunk/SophyaLib/SysTools
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • trunk/SophyaLib/SysTools/ctimer.cc

    r219 r241  
    11//
    2 // $Id: ctimer.cc,v 1.1.1.1 1999-04-09 17:57:04 ansari Exp $
     2// $Id: ctimer.cc,v 1.2 1999-04-21 13:11:59 ansari Exp $
    33//
    44
    5 #include "defs.h"
     5#include "machdefs.h"
    66#include "ctimer.h"
    77
     
    4242  cpu0 = cpuSplit = clock();
    4343  elapse0 = elapseSplit = time(0);
    44   END_CONSTRUCTOR
    4544}
    4645
  • trunk/SophyaLib/SysTools/ctimer.h

    r219 r241  
    11// This may look like C code, but it is really -*- C++ -*-
    22//
    3 // $Id: ctimer.h,v 1.1.1.1 1999-04-09 17:57:04 ansari Exp $
     3// $Id: ctimer.h,v 1.2 1999-04-21 13:12:00 ansari Exp $
    44//
    55
     
    1212#include <iostream.h>
    1313#include <stdio.h>
    14 #include "peida.h"
     14#include "machdefs.h"
    1515
    1616// <summary> Permet de chronometrer des fonctions. </summary>
     
    2222
    2323// La macro SPLITTIME lui permet d'afficher des temps partiels.
    24 class Timer EXC_AWARE {
     24class Timer {
    2525public:
    2626  // L'objet memorise le temps CPU et l'heure, et le nom donne
  • trunk/SophyaLib/SysTools/pdlmgr.h

    r230 r241  
    66#define PDYNLINKMGR_SEEN
    77
    8 #include "defs.h"
     8#include "machdefs.h"
    99#include <string>
    1010#if defined(__KCC__)
  • trunk/SophyaLib/SysTools/periodic.cc

    r219 r241  
    44/*                      LAL/IN2P3 (Orsay)  DAPNIA/CEA (Saclay)            */
    55
    6 #include "defs.h"
     6#include "machdefs.h"
    77#include <signal.h>
    88#include <unistd.h>
  • trunk/SophyaLib/SysTools/periodic.h

    r219 r241  
    44#define PERIODIC_H
    55
    6 #include "defs.h"
     6#include "machdefs.h"
    77#include <list>
    88#if defined(__KCC__)
  • trunk/SophyaLib/SysTools/psighand.cc

    r219 r241  
    55#include <signal.h>
    66#include "psighand.h"
    7 #include "perrors.h"
     7#include "pexceptions.h"
     8
     9using namespace PlanckDPC;
    810
    911static bool sigprstate[5] = {false, false, false, false};
     
    9698  case SIGFPE :
    9799    puts("PeidaProcessSignal: ###Signal SIGFPE catched, throw catchedSIGFPE ###");
    98     THROW(catchedSIGFPE);
     100    throw CaughtSignalExc("SIGFPE");
    99101  case SIGSEGV :
    100102    puts("PeidaProcessSignal: ###Signal SIGSEGV catched, throw catchedSIGSEGV ###");
    101     THROW(catchedSIGSEGV);
     103    throw CaughtSignalExc("SIGSEGV");
    102104  case SIGINT :
    103105    puts("PeidaProcessSignal: ###Signal SIGINT catched, throw catchedSIGINT ###");
    104     THROW(catchedSIGINT);
     106    throw CaughtSignalExc("SIGINT");
    105107  case SIGQUIT :
    106108    puts("PeidaProcessSignal: ###Signal SIGQUIT catched, throw catchedSIGQUIT ###");
    107     THROW(catchedSIGQUIT);
     109    throw CaughtSignalExc("SIGQUIT");
    108110  case SIGUSR1 :
    109111    puts("PeidaProcessSignal: ###Signal SIGUSR1 catched, throw catchedSIGUSR1 ###");
    110     THROW(catchedSIGQUIT);
     112    throw CaughtSignalExc("SIGUSR1");
    111113  case SIGUSR2 :
    112114    puts("PeidaProcessSignal: ###Signal SIGUSR2 catched, throw catchedSIGUSR2 ###");
    113     THROW(catchedSIGQUIT);
     115    throw CaughtSignalExc("SIGUSR2");
    114116  default :
    115117    printf("PeidaProcessSignal: ###Signal %d catched, throw  inconsistentErr ### \n", s);
    116     THROW(inconsistentErr);
     118    throw CaughtSignalExc("???");
    117119  }
    118120
  • trunk/SophyaLib/SysTools/psighand.h

    r219 r241  
    55#define PSIGHANDLE_SEEN
    66
    7 #include "defs.h"
     7#include "machdefs.h"
    88void PeidaConfigureSignalhandling(bool cfpe=false, bool csegv=false, bool cquit=false, bool cusr1=false, bool cusr2=false);
    99#endif
Note: See TracChangeset for help on using the changeset viewer.