PPL Logo

PrioStreaming Class Reference
[Strategies for use in Charm++]

Class that streams messages the same way as StreamingStrategy, but adding a bypass for high priority messages to be flushed immediately. More...

#include <PrioStreaming.h>

Inheritance diagram for PrioStreaming:

Inheritance graph
[legend]
Collaboration diagram for PrioStreaming:

Collaboration graph
[legend]

Public Member Functions

 PrioStreaming (int periodMs=DEFAULT_TIMEOUT, int bufferMax=MAX_NUM_STREAMING_MESSAGES, int prio=0, int msgSizeMax=MAX_STREAMING_MESSAGE_SIZE, int bufSizeMAX=MAX_STREAMING_MESSAGE_SIZE *MAX_NUM_STREAMING_MESSAGES)
 Create a priority based streaming strategy, suitable for passing to ComlibManager.
 PrioStreaming (CkMigrateMessage *m)
void insertMessage (MessageHolder *msg)
virtual void insertMessage (CharmMessageHolder *msg)
void setBasePriority (int p)
virtual void pup (PUP::er &p)
 PUPable_decl (PrioStreaming)

Protected Attributes

int basePriority
CkVec< intminPrioVec

Detailed Description

Class that streams messages the same way as StreamingStrategy, but adding a bypass for high priority messages to be flushed immediately.

These are the criteria for flushing all pending messages:

These criteria flush a single E's pending messages:

Definition at line 29 of file PrioStreaming.h.


Constructor & Destructor Documentation

PrioStreaming::PrioStreaming ( CkMigrateMessage m  )  [inline]

Definition at line 55 of file PrioStreaming.h.


Member Function Documentation

void PrioStreaming::insertMessage ( MessageHolder msg  )  [inline]

Definition at line 57 of file PrioStreaming.h.

void PrioStreaming::setBasePriority ( int  p  )  [inline]

Definition at line 62 of file PrioStreaming.h.

References basePriority, Converse::CkNumPes(), and minPrioVec.

PrioStreaming::PUPable_decl ( PrioStreaming   ) 


Field Documentation

Definition at line 31 of file PrioStreaming.h.

Referenced by insertMessage(), pup(), and setBasePriority().

Definition at line 32 of file PrioStreaming.h.

Referenced by insertMessage(), pup(), and setBasePriority().


The documentation for this class was generated from the following files:

Generated on Fri May 25 08:04:52 2012 for Charm++ by  doxygen 1.5.5