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

Method Suspend

driver_darwin.go:219–230  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

217}
218
219func (c *context) Suspend() error {
220 c.cond.L.Lock()
221 defer c.cond.L.Unlock()
222
223 if err := c.err.Load(); err != nil {
224 return err.(error)
225 }
226 c.toPause = true
227 c.toResume = false
228 c.cond.Signal()
229 return nil
230}
231
232func (c *context) Resume() error {
233 c.cond.L.Lock()

Callers

nothing calls this directly

Calls 1

LoadMethod · 0.80

Tested by

no test coverage detected