RRNode - parisk/round-robin GitHub Wiki

Description

This is the simplest of all classes and its name is a shorthand of Round Robin Node. This class is used to define the process queue and the nodes inside it.

Attributes

Public

proc (RRProcess *)

This attribute is a pointer to the Round Robin Process of this specific node.

next (RRNode *)

This attribute is a pointer to the next Round Robin Node in the scheduler queue. If there is no next node, its value is considered NULL. Despite the queue behaves in a circular way, this behaviour is handled by the scheduler itself. The last node's next attribute doesn't point to the first node, because this would make it hard and inefficient to push/pop/splice nodes to/off the queue.