PPL Logo

TimePool Class Reference

#include <memory_temporal.h>

Inheritance diagram for TimePool:

Inheritance graph
[legend]
Collaboration diagram for TimePool:

Collaboration graph
[legend]

Public Member Functions

 TimePool ()
 TimePool (CkMigrateMessage *msg)
 ~TimePool ()
void pup (PUP::er &p)
 Pack/UnPack - tell the runtime how to serialize this class's data for migration, checkpoint, etc.
char * tmp_alloc (POSE_TimeType timestamp, int sz_in_bytes)
void tmp_free (POSE_TimeType timestamp, void *mem)
void set_min_time (POSE_TimeType min_t)
void empty_recycle_bin ()
void sanity_check ()

Private Member Functions

void clean_up ()

Private Attributes

TimeBucketlast_in_use
TimeBucketfirst_in_use
SuperBlocknot_in_use
int not_in_use_sz
POSE_TimeType min_time
int BLOCK_RANGE

Detailed Description

Definition at line 218 of file memory_temporal.h.


Constructor & Destructor Documentation

TimePool::TimePool (  )  [inline]

Definition at line 232 of file memory_temporal.h.

TimePool::TimePool ( CkMigrateMessage msg  )  [inline]

Definition at line 234 of file memory_temporal.h.

TimePool::~TimePool (  ) 

Definition at line 99 of file memory_temporal.C.

References SuperBlock::getNextBlock(), TimeBucket::getNextBucket(), last_in_use, and not_in_use.

Here is the call graph for this function:


Member Function Documentation

void TimePool::clean_up (  )  [private]

void TimePool::pup ( PUP::er p  )  [inline, virtual]

Pack/UnPack - tell the runtime how to serialize this class's data for migration, checkpoint, etc.

Reimplemented from Group.

Definition at line 236 of file memory_temporal.h.

char * TimePool::tmp_alloc ( POSE_TimeType  timestamp,
int  sz_in_bytes 
)

void TimePool::tmp_free ( POSE_TimeType  timestamp,
void *  mem 
)

Definition at line 190 of file memory_temporal.C.

References first_in_use, TimeBucket::getPrevBucket(), TimeBucket::getRange(), TimeBucket::getStart(), sanity_check(), and TimeBucket::tb_free().

Referenced by eventQueue::CommitEvents(), chpt< StateType >::restore(), and opt::Rollback().

Here is the call graph for this function:

Here is the caller graph for this function:

void TimePool::set_min_time ( POSE_TimeType  min_t  )  [inline]

Definition at line 242 of file memory_temporal.h.

References clean_up(), and min_time.

Referenced by eventQueue::CommitEvents(), and PVT::setGVT().

Here is the call graph for this function:

Here is the caller graph for this function:

void TimePool::empty_recycle_bin (  )  [inline]

Definition at line 243 of file memory_temporal.h.

References PUP::b, SuperBlock::getNextBlock(), and not_in_use.

Referenced by eventQueue::CommitEvents().

Here is the call graph for this function:

Here is the caller graph for this function:

void TimePool::sanity_check (  ) 

Definition at line 212 of file memory_temporal.C.

References first_in_use, TimeBucket::getNextBucket(), TimeBucket::getPrevBucket(), last_in_use, POSE_UnsetTS, and TimeBucket::sanity_check().

Referenced by clean_up(), tmp_alloc(), and tmp_free().

Here is the call graph for this function:

Here is the caller graph for this function:


Field Documentation

Definition at line 219 of file memory_temporal.h.

Referenced by clean_up(), sanity_check(), tmp_alloc(), and ~TimePool().

Definition at line 220 of file memory_temporal.h.

Referenced by clean_up(), sanity_check(), tmp_alloc(), and tmp_free().

Definition at line 221 of file memory_temporal.h.

Referenced by clean_up(), empty_recycle_bin(), tmp_alloc(), and ~TimePool().

Definition at line 222 of file memory_temporal.h.

Referenced by clean_up(), and tmp_alloc().

Definition at line 224 of file memory_temporal.h.

Referenced by clean_up(), and set_min_time().

Definition at line 227 of file memory_temporal.h.


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

Generated on Mon Sep 21 08:30:51 2020 for Charm++ by  doxygen 1.5.5