- Temporarily disabled template-based singleton system because of a crash virtually surely caused by it
git-svn-id: svn://svn.gna.org/svn/sgpemv2/trunk@648 3ecf2c5c-341e-0410-92b4-d18e462d057c
This commit is contained in:
parent
167f9ad437
commit
0a2f37345f
8 changed files with 60 additions and 11 deletions
|
@ -54,7 +54,7 @@ namespace sgpem
|
|||
|
||||
*/
|
||||
|
||||
class SG_DLLEXPORT Scheduler : public Singleton<Scheduler>
|
||||
class SG_DLLEXPORT Scheduler /*: public Singleton<Scheduler>*/
|
||||
{
|
||||
friend class Singleton<Scheduler>;
|
||||
public:
|
||||
|
@ -86,13 +86,16 @@ namespace sgpem
|
|||
Returns the policy that will be used to generate the simulation at the next instant.
|
||||
\return the policy that will be used to generate the simulation at the next instant.
|
||||
*/
|
||||
Policy& get_policy();
|
||||
Policy& get_policy();
|
||||
|
||||
static Scheduler& get_instance();
|
||||
|
||||
|
||||
private:
|
||||
Scheduler(); //private constructor.
|
||||
SchedulableQueue _ready_queue;
|
||||
PolicyManager& _policy_manager;
|
||||
static Scheduler* _instance;
|
||||
};
|
||||
|
||||
}//~ namespace sgpem
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue