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. | |
| vrpn_LamportTimestamp * | getTimestampAndAdvance (void) |
| Increments the current timestamp and returns it. | |
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 115 of file vrpn_LamportClock.C.
| vrpn_LamportClock::~vrpn_LamportClock | ( | void | ) |
Definition at line 131 of file vrpn_LamportClock.C.
| vrpn_LamportTimestamp * vrpn_LamportClock::getTimestampAndAdvance | ( | void | ) |
Increments the current timestamp and returns it.
Definition at line 158 of file vrpn_LamportClock.C.
References vrpn_LamportTimestamp.
| void vrpn_LamportClock::receive | ( | const vrpn_LamportTimestamp & | r | ) |
Updates this clock to reflect a timestamp received from another clock/host.
Definition at line 142 of file vrpn_LamportClock.C.
References vrpn_LamportTimestamp::size().
Referenced by vrpn_Shared_int32::handle_lamportUpdate().
