MCPcopy
hub / github.com/ebitengine/oto / wait

Method wait

driver_darwin.go:163–171  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

161}
162
163func (c *context) wait() bool {
164 c.cond.L.Lock()
165 defer c.cond.L.Unlock()
166
167 for len(c.unqueuedBuffers) == 0 && c.err.Load() == nil && !c.toPause && !c.toResume {
168 c.cond.Wait()
169 }
170 return c.err.Load() == nil
171}
172
173func (c *context) loop() {
174 buf32 := make([]float32, c.oneBufferSizeInBytes/4)

Callers 1

loopMethod · 0.95

Calls 1

LoadMethod · 0.80

Tested by

no test coverage detected