mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-30 22:50:10 +03:00
F #1843: Changed scope of variable
This commit is contained in:
parent
31429d8d40
commit
87cb73efee
src/scheduler
@ -42,19 +42,19 @@ class SchedulerTemplate;
|
||||
class Scheduler: public ActionListener
|
||||
{
|
||||
public:
|
||||
|
||||
static Scheduler* sched;
|
||||
|
||||
void start();
|
||||
|
||||
virtual void register_policies(const SchedulerTemplate& conf){};
|
||||
|
||||
static Scheduler& instance(Scheduler* the_sched=0)
|
||||
{
|
||||
static Scheduler * sched = 0;
|
||||
|
||||
if ( the_sched != 0)
|
||||
{
|
||||
sched = the_sched;
|
||||
}
|
||||
|
||||
return *sched;
|
||||
}
|
||||
|
||||
|
@ -37,9 +37,6 @@
|
||||
|
||||
using namespace std;
|
||||
|
||||
Scheduler* Scheduler::sched = 0;
|
||||
|
||||
|
||||
/* -------------------------------------------------------------------------- */
|
||||
/* -------------------------------------------------------------------------- */
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user