#include <LBDBManager.h>
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 |
Definition at line 21 of file LBDBManager.h.
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.
void LocalBarrier::TurnOn | ( | ) | [inline] |
Definition at line 40 of file LBDBManager.h.
References CheckBarrier(), and on.
Referenced by LBDB::DoneRegisteringObjects(), and LBDB::LocalBarrierOn().
void LocalBarrier::TurnOff | ( | ) | [inline] |
Definition at line 41 of file LBDBManager.h.
References on.
Referenced by LBDB::LocalBarrierOff(), and LBDB::RegisteringObjects().
friend class LBDB [friend] |
Definition at line 22 of file LBDBManager.h.
std::list<client*> LocalBarrier::clients [private] |
Definition at line 48 of file LBDBManager.h.
Referenced by AddClient(), CheckBarrier(), RemoveClient(), and ResumeClients().
std::list<receiver*> LocalBarrier::receivers [private] |
Definition at line 49 of file LBDBManager.h.
Referenced by AddReceiver(), CallReceivers(), and RemoveReceiver().
int LocalBarrier::cur_refcount [private] |
Definition at line 51 of file LBDBManager.h.
Referenced by AddClient(), CheckBarrier(), and LocalBarrier().
int LocalBarrier::client_count [private] |
Definition at line 52 of file LBDBManager.h.
Referenced by AddClient(), CheckBarrier(), LocalBarrier(), and RemoveClient().
int LocalBarrier::max_receiver [private] |
int LocalBarrier::at_count [private] |
Definition at line 54 of file LBDBManager.h.
Referenced by AtBarrier(), CheckBarrier(), DecreaseBarrier(), and LocalBarrier().
bool LocalBarrier::on [private] |
Definition at line 55 of file LBDBManager.h.
Referenced by CheckBarrier(), LocalBarrier(), TurnOff(), TurnOffReceiver(), TurnOn(), and TurnOnReceiver().
int LocalBarrier::first_free_client_slot [private] |