aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--common/coroutines.h22
1 files changed, 12 insertions, 10 deletions
diff --git a/common/coroutines.h b/common/coroutines.h
index 3b8b1a77f9..64eabbf8f4 100644
--- a/common/coroutines.h
+++ b/common/coroutines.h
@@ -328,6 +328,18 @@ public:
typedef void (*VFPTRPP)(PROCESS *);
private:
+ friend class Singleton<CoroutineScheduler>;
+
+ /**
+ * Constructor
+ */
+ CoroutineScheduler();
+
+ /**
+ * Destructor
+ */
+ ~CoroutineScheduler();
+
/** list of all processes */
PROCESS *processList;
@@ -369,16 +381,6 @@ private:
EVENT *getEvent(uint32 pid);
public:
/**
- * Constructor
- */
- CoroutineScheduler();
-
- /**
- * Destructor
- */
- ~CoroutineScheduler();
-
- /**
* Kills all processes and places them on the free list.
*/
void reset();