[Scummvm-cvs-logs] scummvm master -> 8e7f874db35395d100ca73d9433b25f2f7eae19d

lordhoto lordhoto at gmail.com
Thu Jun 7 18:12:47 CEST 2012


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
8e7f874db3 COMMON: Make CoroutineScheduler's constructor and destructor private.


Commit: 8e7f874db35395d100ca73d9433b25f2f7eae19d
    https://github.com/scummvm/scummvm/commit/8e7f874db35395d100ca73d9433b25f2f7eae19d
Author: Johannes Schickel (lordhoto at scummvm.org)
Date: 2012-06-07T09:11:38-07:00

Commit Message:
COMMON: Make CoroutineScheduler's constructor and destructor private.

CoroutineSchedule is a singleton, thus it should not be possible to create
a custom instance of it.

Changed paths:
    common/coroutines.h



diff --git a/common/coroutines.h b/common/coroutines.h
index 3b8b1a7..64eabbf 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();






More information about the Scummvm-git-logs mailing list