Queueing events in an interactive media environment
First Claim
1. A method to manage processing of workitems corresponding to events that occur in an interactive media environment where time is counted using a sequence of ticks, the method comprising the steps of:
- marking workitems disposed in an event queue whereby workitems having a begin time that is at a current tick or before the current tick are marked;
processing marked workitems that have an end time that is after the current tick; and
dropping from the event queue marked workitems having an end time that is before the current tick.
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.
112 Citations
20 Claims
-
1. A method to manage processing of workitems corresponding to events that occur in an interactive media environment where time is counted using a sequence of ticks, the method comprising the steps of:
-
marking workitems disposed in an event queue whereby workitems having a begin time that is at a current tick or before the current tick are marked;
processing marked workitems that have an end time that is after the current tick; and
dropping from the event queue marked workitems having an end time that is before the current tick. - View Dependent Claims (2, 3, 4, 5, 6)
-
-
7. 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 event queue for queuing the workitems, the event queue having a head end and a tail end and arranged so that workitems are processed from the head end of the event queue; and
an application thread 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 the event queue so that they follow after marked workitems. - View Dependent Claims (8, 9, 10, 11, 12)
-
-
13. A computer-readable medium, which when executed by one or more processors disposed in an electronic device, performs a method to manage processing of work items associated with repetitive events and non-repetitive events that occur in an interactive media environment, each workitem having a timestamp that includes at least a begin time, the method comprising the steps of:
-
ordering workitems in an event queue by begin time followed by entry time into the event queue;
processing workitems from the event queue in order and on a committed basis so that an event associated with a processed workitem is handled before processing is terminated; and
dropping only workitems from the event queue that are associated with repetitive events. - View Dependent Claims (14, 15, 16, 17, 18, 19, 20)
-
Specification