start of work to re-implement Schedule* methods

This commit is contained in:
Mathieu Lacage
2006-10-28 21:21:51 +02:00
parent ef639a6e17
commit 35eab87f76
2 changed files with 26 additions and 0 deletions

View File

@@ -59,6 +59,8 @@ public:
void Stop (void);
void StopAt (Time const &time);
EventId Schedule (Time const &time, EventImpl *event);
void ScheduleNow (EventImpl *event);
void ScheduleDestroy (EventImpl *event);
void Remove (EventId ev);
void Cancel (EventId ev);
bool IsExpired (EventId ev);
@@ -192,6 +194,17 @@ SimulatorPrivate::Schedule (Time const &time, EventImpl *event)
m_uid++;
return m_events->Insert (event, key);
}
void
SimulatorPrivate::ScheduleNow (EventImpl *event)
{
//XXX
}
void
SimulatorPrivate::ScheduleDestroy (EventImpl *event)
{
//XXX
}
Time
SimulatorPrivate::Now (void) const
{
@@ -348,6 +361,17 @@ Simulator::Schedule (Time const &time, EventImpl *ev)
{
return GetPriv ()->Schedule (time, ev);
}
void
Simulator::ScheduleNow (EventImpl *ev)
{
GetPriv ()->ScheduleNow (ev);
}
void
Simulator::ScheduleDestroy (EventImpl *ev)
{
GetPriv ()->ScheduleDestroy (ev);
}
EventId
Simulator::Schedule (Time const &time, void (*f) (void))
{

View File

@@ -347,6 +347,8 @@ private:
static SimulatorPrivate *GetPriv (void);
static EventId Schedule (Time const &time, EventImpl *event);
static void ScheduleDestroy (EventImpl *event);
static void ScheduleNow (EventImpl *event);
static SimulatorPrivate *m_priv;
static SchedulerFactory const*m_schedFactory;
static enum ListType {