Skip to content

Commit

Permalink
COMMON: Make CoroutineScheduler's constructor and destructor private.
Browse files Browse the repository at this point in the history
CoroutineSchedule is a singleton, thus it should not be possible to create
a custom instance of it.
  • Loading branch information
Johannes Schickel committed Jun 7, 2012
1 parent 27aa097 commit 8e7f874
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions common/coroutines.h
Expand Up @@ -328,6 +328,18 @@ class CoroutineScheduler : public Singleton<CoroutineScheduler> {
typedef void (*VFPTRPP)(PROCESS *);

private:
friend class Singleton<CoroutineScheduler>;

/**
* Constructor
*/
CoroutineScheduler();

/**
* Destructor
*/
~CoroutineScheduler();


/** list of all processes */
PROCESS *processList;
Expand Down Expand Up @@ -368,16 +380,6 @@ class CoroutineScheduler : public Singleton<CoroutineScheduler> {
PROCESS *getProcess(uint32 pid);
EVENT *getEvent(uint32 pid);
public:
/**
* Constructor
*/
CoroutineScheduler();

/**
* Destructor
*/
~CoroutineScheduler();

/**
* Kills all processes and places them on the free list.
*/
Expand Down

0 comments on commit 8e7f874

Please sign in to comment.