PPL Logo

MSA_Thread_Listener Class Reference

Resumes a thread once all needed pages have arrived. More...

#include <msa-DistPageMgr.h>

Inheritance diagram for MSA_Thread_Listener:

Inheritance graph
[legend]
Collaboration diagram for MSA_Thread_Listener:

Collaboration graph
[legend]

Public Member Functions

 MSA_Thread_Listener ()
void add (void)
 Wait for one more page.
void suspend (void)
 If we're waiting for any pages, suspend our thread.
void signal (unsigned int pageNo)
 Another page arrived.

Private Attributes

CthThread thread
int count

Detailed Description

Resumes a thread once all needed pages have arrived.

Definition at line 63 of file msa-DistPageMgr.h.


Constructor & Destructor Documentation

MSA_Thread_Listener::MSA_Thread_Listener (  )  [inline]

Definition at line 67 of file msa-DistPageMgr.h.


Member Function Documentation

void MSA_Thread_Listener::add ( void   )  [virtual]

Wait for one more page.

Implements MSA_Listener.

Definition at line 30 of file msa-distArray.C.

References count.

void MSA_Thread_Listener::suspend ( void   ) 

If we're waiting for any pages, suspend our thread.

Definition at line 35 of file msa-distArray.C.

References count, CthSelf(), CthSuspend(), and thread.

Referenced by MSA_CacheGroup< ENTRY_TYPE, ENTRY_OPS_CLASS, ENTRIES_PER_PAGE >::addAndSuspend(), MSA_CacheGroup< ENTRY_TYPE, ENTRY_OPS_CLASS, ENTRIES_PER_PAGE >::pageFault(), and MSA_CacheGroup< ENTRY_TYPE, ENTRY_OPS_CLASS, ENTRIES_PER_PAGE >::sendChangesToPageArray().

Here is the call graph for this function:

Here is the caller graph for this function:

void MSA_Thread_Listener::signal ( unsigned int  pageNo  )  [virtual]

Another page arrived.

Implements MSA_Listener.

Definition at line 46 of file msa-distArray.C.

References count, CthAwaken(), and thread.

Here is the call graph for this function:


Field Documentation

Definition at line 64 of file msa-DistPageMgr.h.

Referenced by signal(), and suspend().

Definition at line 65 of file msa-DistPageMgr.h.

Referenced by add(), signal(), and suspend().


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

Generated on Mon Sep 21 08:27:48 2020 for Charm++ by  doxygen 1.5.5