#include <msa-DistPageMgr.h>
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 |
Definition at line 63 of file msa-DistPageMgr.h.
MSA_Thread_Listener::MSA_Thread_Listener | ( | ) | [inline] |
Definition at line 67 of file msa-DistPageMgr.h.
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().
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.
CthThread MSA_Thread_Listener::thread [private] |
int MSA_Thread_Listener::count [private] |