Logo Search packages:      
Sourcecode: dbbalancer version File versions

DBSignalHandler.hh

#include <signal.h>
#include "ace/Reactor.h"
#include "ace/Event_Handler.h"
#include "ace/Process.h"


class DBBalancerDaemon;

class DBSignalHandler: public ACE_Event_Handler{

public:

  DBSignalHandler(DBBalancerDaemon *d);
  int handle_signal(int signum, siginfo_t*,ucontext_t*);
  int handle_exit(ACE_Process *p);
  
private:

  ACE_Thread_Mutex _mutex;
  bool _processed;
  DBBalancerDaemon *_daemon;

};

Generated by  Doxygen 1.6.0   Back to index