|
RDK Documentation (Open Sourced RDK Components)
|
20 #include "MockAampScheduler.h"
55 if (g_mockAampScheduler !=
nullptr)
57 return g_mockAampScheduler->ScheduleTask(obj);
67 if (g_mockAampScheduler !=
nullptr)
69 return g_mockAampScheduler->SetState(sstate);
int ScheduleTask(AsyncTaskObj obj)
To schedule a task to be executed later.
void SetState(PrivAAMPState sstate)
To player state to Scheduler.
AampScheduler()
AampScheduler Constructor.
void StartScheduler()
To start scheduler thread.
virtual ~AampScheduler()
AampScheduler Destructor.
void ResumeScheduler()
To release execution lock.
bool RemoveTask(int id)
To remove a scheduled tasks with ID.
void StopScheduler()
To stop scheduler and associated resources.
Class to schedule commands for async execution.
PrivAAMPState
Mapping all required status codes based on JS player requirement. These requirements may be forced by...
void SuspendScheduler()
To acquire execution lock for synchronisation purposes.
void RemoveAllTasks()
To remove all scheduled tasks and prevent further tasks from scheduling.