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

Function ReadFBClockDataRealtime

fbclock/shmem.go:293–301  ·  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

291
292// ReadFBClockDataRealtime reads the realtime anchor section. Used in tests only.
293func ReadFBClockDataRealtime(shmp unsafe.Pointer) (*DataV2, error) {
294 cData := &C.fbclock_clockdata_v2{}
295 shmpData := (*C.fbclock_shmdata_v2)(shmp)
296 res := C.fbclock_clockdata_load_data_realtime(shmpData, cData)
297 if res != 0 {
298 return nil, fmt.Errorf("failed to load realtime data: %s", strerror(res))
299 }
300 return clockDataV2FromC(cData), nil
301}

Callers

nothing calls this directly

Calls 2

strerrorFunction · 0.85
clockDataV2FromCFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…