Charades
Public Member Functions | Private Attributes | Friends | List of all members
LPToken Struct Reference

A token representing a handle to an LP chare inside the scheduler queues. More...

#include <lp.h>

Public Member Functions

 LPToken ()
 Default constructor. More...
 
 LPToken (LPChare *lp)
 Constructor called from the LP chare that sets lp at initialization. More...
 

Private Attributes

LPCharelp
 Direct pointer to the LP chare this token represents.
 
Time ts
 A timestamp associated with the LP to be used as a key.
 
uint32_t index
 The index of this token within the queue/heap.
 

Friends

class PEQueue
 
class Scheduler
 
class DistributedScheduler
 
class OptimisticScheduler
 

Detailed Description

A token representing a handle to an LP chare inside the scheduler queues.

Todo:
Shouldn't this just be defined as a node in the data structure?

Constructor & Destructor Documentation

◆ LPToken() [1/2]

LPToken::LPToken ( )
inline

Default constructor.

Todo:
should this be disabled?

◆ LPToken() [2/2]

LPToken::LPToken ( LPChare lp)
inline

Constructor called from the LP chare that sets lp at initialization.

Parameters
lpa pointer to the LP chare this token represents

The documentation for this struct was generated from the following file: