vrpn
07.33
Virtual Reality Peripheral Network
|
Implements a distributed event clock as defined by Leslie Lamport in some seminal papers I can't find my copies of, for use by people who want to sequence events without relying on synchronization of wallclocks. More...
#include <vrpn_LamportClock.h>
Public Member Functions | |
vrpn_LamportClock (int numHosts, int ourIndex) | |
~vrpn_LamportClock (void) | |
void | receive (const vrpn_LamportTimestamp &) |
Updates this clock to reflect a timestamp received from another clock/host. More... | |
vrpn_LamportTimestamp * | getTimestampAndAdvance (void) |
Increments the current timestamp and returns it. More... | |
Implements a distributed event clock as defined by Leslie Lamport in some seminal papers I can't find my copies of, for use by people who want to sequence events without relying on synchronization of wallclocks.
Definition at line 60 of file vrpn_LamportClock.h.
vrpn_LamportClock::vrpn_LamportClock | ( | int | numHosts, |
int | ourIndex | ||
) |
Definition at line 96 of file vrpn_LamportClock.C.
vrpn_LamportClock::~vrpn_LamportClock | ( | void | ) |
Definition at line 111 of file vrpn_LamportClock.C.
vrpn_LamportTimestamp * vrpn_LamportClock::getTimestampAndAdvance | ( | void | ) |
Increments the current timestamp and returns it.
Definition at line 133 of file vrpn_LamportClock.C.
References vrpn_LamportTimestamp.
Referenced by vrpn_Shared_int32::sendUpdate().
void vrpn_LamportClock::receive | ( | const vrpn_LamportTimestamp & | r | ) |
Updates this clock to reflect a timestamp received from another clock/host.
Definition at line 117 of file vrpn_LamportClock.C.
References vrpn_LamportTimestamp::size().
Referenced by vrpn_Shared_int32::handle_lamportUpdate().