Queueing events in an interactive media environment
First Claim
1. An electronic device hosting an application scheduler arranged to manage processing of workitems corresponding to events occurring in an interactive media environment where time is counted using a sequence of ticks, each of the workitems having a timestamp that includes a begin time and an end time, the application scheduler comprising:
- a plurality of event queues for queuing the work items, each of the event queues having a head end and a tail end and arranged so that workitems are processed from the head end of the event queue, each of the event queues further being accessible by respective ones of a plurality of interactive media applications in order to insert the workitems into the event queues; and
an application thread coupled to the plurality of event queues at their head ends, the application thread being arranged for marking workitems whose begin time corresponds to a current tick or a previous tick, processing marked workitems, and inserting workitems associated with new events that occur during the processing at the tail end of an event queue so that they follow after marked workitems.
2 Assignments
0 Petitions
Accused Products
Abstract
An arrangement is provided where all applications in an interactive media environment run on a single application thread in a media player. Event queues are utilized to schedule the application thread'"'"'s processing of workitems corresponding to events that occur in the environment. Workitems include methods to be invoked when the workitem is processed and arguments for the method. Workitems further include a begin time and an end time and are ordered in the event queue first by begin time followed by the order in which they were inserted into the queue. The application thread marks workitems whose begin times corresponds to the current or previous time and then processes marked workitems from the queue in order. Such processing is committed so that once the application thread begins processing of a workitem it does not stop. Workitems are dropped from the event queue if their end times have been passed.
-
Citations
11 Claims
-
1. An electronic device hosting an application scheduler arranged to manage processing of workitems corresponding to events occurring in an interactive media environment where time is counted using a sequence of ticks, each of the workitems having a timestamp that includes a begin time and an end time, the application scheduler comprising:
- a plurality of event queues for queuing the work items, each of the event queues having a head end and a tail end and arranged so that workitems are processed from the head end of the event queue, each of the event queues further being accessible by respective ones of a plurality of interactive media applications in order to insert the workitems into the event queues; and
an application thread coupled to the plurality of event queues at their head ends, the application thread being arranged for marking workitems whose begin time corresponds to a current tick or a previous tick, processing marked workitems, and inserting workitems associated with new events that occur during the processing at the tail end of an event queue so that they follow after marked workitems. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10, 11)
- a plurality of event queues for queuing the work items, each of the event queues having a head end and a tail end and arranged so that workitems are processed from the head end of the event queue, each of the event queues further being accessible by respective ones of a plurality of interactive media applications in order to insert the workitems into the event queues; and
Specification