ALPS Home Libraries License Support People ALPS Web Site

PrevUpHomeNext

Class SignalHandler

alps::scheduler::SignalHandler

Synopsis

// In header: <alps/scheduler/signal.hpp>


class SignalHandler {
public:
  enum SignalInfo;
  // construct/copy/destruct
  SignalHandler();

  // public member functions
  SignalInfo operator()();

  // public static functions
  static void stopprocess();

  // private static functions
  static void tstp(int);
  static void kill(int);
  static void usr1(int);
  static void usr2(int);
};

Description

implements a signal handler. signals are intercepted and can be checked for.

SignalHandler public construct/copy/destruct

  1. SignalHandler();
    a default constructor

SignalHandler public member functions

  1. SignalInfo operator()();

    ask for signals. If more than one signal has been received the signal with the highest priority will be returned. Priorities are: USER1 > USER2 > STOP > TERMINATE.

SignalHandler public static functions

  1. static void stopprocess();
    send myself a noncatchable stop signal

SignalHandler private static functions

  1. static void tstp(int);
  2. static void kill(int);
  3. static void usr1(int);
  4. static void usr2(int);
Copyright © 1994, 2002-2005 Matthias Troyer, Synge Todo

PrevUpHomeNext