MCPcopy
hub / github.com/livekit/livekit / SetRTT

Method SetRTT

pkg/sfu/buffer/buffer_base.go:673–688  ·  view source on GitHub ↗
(rtt uint32)

Source from the content-addressed store, hash-verified

671}
672
673func (b *BufferBase) SetRTT(rtt uint32) {
674 b.Lock()
675 defer b.Unlock()
676
677 if rtt == 0 {
678 return
679 }
680
681 if b.nacker != nil {
682 b.nacker.SetRTT(rtt)
683 }
684
685 if b.rtpStats != nil {
686 b.rtpStats.UpdateRtt(rtt)
687 }
688}
689
690func (b *BufferBase) WaitRead() {
691 b.readCond.Wait()

Callers

nothing calls this directly

Calls 2

UpdateRttMethod · 0.80
SetRTTMethod · 0.65

Tested by

no test coverage detected