RflySimSDK v3.05
RflySimSDK说明文档
载入中...
搜索中...
未找到
vrpn_LamportClock类 参考

#include <vrpn_LamportClock.h>

Public 成员函数

 vrpn_LamportClock (int numHosts, int ourIndex)
 
void receive (const vrpn_LamportTimestamp &)
 
vrpn_LamportTimestampgetTimestampAndAdvance (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.

成员函数说明

◆ getTimestampAndAdvance()

vrpn_LamportTimestamp * getTimestampAndAdvance ( void )

Increments the current timestamp and returns it.

◆ receive()

void receive ( const vrpn_LamportTimestamp & )

Updates this clock to reflect a timestamp received from another clock/host.


该类的文档由以下文件生成: