MCPcopy
hub / github.com/tinygo-org/tinygo / Remove

Method Remove

cgo/sync.go:41–46  ·  view source on GitHub ↗

Remove deletes a single reference from the map.

(ref unsafe.Pointer)

Source from the content-addressed store, hash-verified

39
40// Remove deletes a single reference from the map.
41func (m *refMap) Remove(ref unsafe.Pointer) {
42 m.lock.Lock()
43 defer m.lock.Unlock()
44 delete(m.refs, ref)
45 C.free(ref)
46}

Callers

nothing calls this directly

Calls 2

LockMethod · 0.65
UnlockMethod · 0.65

Tested by

no test coverage detected