1999-09-27 18:44:28 +00:00
|
|
|
// -*- C++ -*-
|
|
|
|
|
|
|
|
#ifdef __GNUG__
|
|
|
|
#pragma interface
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#include <LString.h>
|
|
|
|
|
|
|
|
|
|
|
|
class Systemcalls;
|
|
|
|
|
1999-10-12 21:37:10 +00:00
|
|
|
class SystemcallsSingletoncontroller {
|
1999-09-27 18:44:28 +00:00
|
|
|
public:
|
1999-10-12 21:37:10 +00:00
|
|
|
class Startcontroller {
|
1999-09-27 18:44:28 +00:00
|
|
|
public:
|
|
|
|
Startcontroller();
|
|
|
|
~Startcontroller();
|
1999-10-12 21:37:10 +00:00
|
|
|
static SystemcallsSingletoncontroller * getController();
|
|
|
|
void reduceRefcount() { refcount--; }
|
1999-09-27 18:44:28 +00:00
|
|
|
private:
|
1999-10-12 21:37:10 +00:00
|
|
|
static SystemcallsSingletoncontroller * contr;
|
1999-09-27 18:44:28 +00:00
|
|
|
static int refcount;
|
|
|
|
};
|
|
|
|
~SystemcallsSingletoncontroller();
|
1999-10-12 21:37:10 +00:00
|
|
|
void addCall(Systemcalls const & newcall);
|
|
|
|
void timer();
|
1999-09-27 18:44:28 +00:00
|
|
|
// private: // DEC cxx does not like that (JMarc)
|
|
|
|
SystemcallsSingletoncontroller();
|
|
|
|
private:
|
|
|
|
struct ControlledCalls {
|
|
|
|
Systemcalls *call;
|
1999-10-12 21:37:10 +00:00
|
|
|
ControlledCalls *next;
|
|
|
|
};
|
|
|
|
ControlledCalls * sysCalls;
|
1999-09-27 18:44:28 +00:00
|
|
|
};
|