PPL Logo

LocalBarrier Class Reference
[Charm++ Load Balancing Framework]

#include <LBDBManager.h>

Collaboration diagram for LocalBarrier:

Collaboration graph
[legend]

Public Member Functions

 LocalBarrier ()
 ~LocalBarrier ()
LDBarrierClient AddClient (LDResumeFn fn, void *data)
void RemoveClient (LDBarrierClient h)
LDBarrierReceiver AddReceiver (LDBarrierFn fn, void *data)
void RemoveReceiver (LDBarrierReceiver h)
void TurnOnReceiver (LDBarrierReceiver h)
void TurnOffReceiver (LDBarrierReceiver h)
void AtBarrier (LDBarrierClient h)
void DecreaseBarrier (LDBarrierClient h, int c)
void TurnOn ()
void TurnOff ()

Private Member Functions

void CallReceivers (void)
void CheckBarrier ()
void ResumeClients (void)

Private Attributes

std::list< client * > clients
std::list< receiver * > receivers
int cur_refcount
int client_count
int max_receiver
int at_count
bool on
int first_free_client_slot

Friends

class LBDB

Detailed Description

Definition at line 21 of file LBDBManager.h.


Constructor & Destructor Documentation

LocalBarrier::LocalBarrier (  )  [inline]

Definition at line 24 of file LBDBManager.h.

References at_count, client_count, cur_refcount, first_free_client_slot, max_receiver, and on.

LocalBarrier::~LocalBarrier (  )  [inline]

Definition at line 30 of file LBDBManager.h.


Member Function Documentation

void LocalBarrier::TurnOn (  )  [inline]

Definition at line 40 of file LBDBManager.h.

References CheckBarrier(), and on.

Referenced by LBDB::DoneRegisteringObjects(), and LBDB::LocalBarrierOn().

Here is the call graph for this function:

Here is the caller graph for this function:

void LocalBarrier::TurnOff (  )  [inline]

Definition at line 41 of file LBDBManager.h.

References on.

Referenced by LBDB::LocalBarrierOff(), and LBDB::RegisteringObjects().

Here is the caller graph for this function:


Friends And Related Function Documentation

friend class LBDB [friend]

Definition at line 22 of file LBDBManager.h.


Field Documentation

Definition at line 48 of file LBDBManager.h.

Referenced by AddClient(), CheckBarrier(), RemoveClient(), and ResumeClients().

Definition at line 49 of file LBDBManager.h.

Referenced by AddReceiver(), CallReceivers(), and RemoveReceiver().

Definition at line 51 of file LBDBManager.h.

Referenced by AddClient(), CheckBarrier(), and LocalBarrier().

Definition at line 52 of file LBDBManager.h.

Referenced by AddClient(), CheckBarrier(), LocalBarrier(), and RemoveClient().

Definition at line 53 of file LBDBManager.h.

Referenced by LocalBarrier().

Definition at line 54 of file LBDBManager.h.

Referenced by AtBarrier(), CheckBarrier(), DecreaseBarrier(), and LocalBarrier().

Definition at line 58 of file LBDBManager.h.

Referenced by LocalBarrier().


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

Generated on Mon Sep 21 08:26:49 2020 for Charm++ by  doxygen 1.5.5