MCPcopy Create free account
hub / github.com/facebook/time / ReadFBClockDataRealtime

Function ReadFBClockDataRealtime

fbclock/shmem_notlinux.go:279–286  ·  view source on GitHub ↗

ReadFBClockDataRealtime reads the realtime anchor section. Used in tests only.

(shmp unsafe.Pointer)

Source from the content-addressed store, hash-verified

277
278// ReadFBClockDataRealtime reads the realtime anchor section. Used in tests only.
279func ReadFBClockDataRealtime(shmp unsafe.Pointer) (*DataV2, error) {
280 base := (*[shmDataV2Size]byte)(shmp)[:]
281 buf, err := loadSeqlockSection(base, shmV2RealtimeSeqOff, shmV2SectionDataLen)
282 if err != nil {
283 return nil, err
284 }
285 return readClockDataV2(buf), nil
286}

Callers

nothing calls this directly

Calls 2

loadSeqlockSectionFunction · 0.85
readClockDataV2Function · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…