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