MCPcopy Create free account
hub / github.com/buke/quickjs-go / registerRuntime

Function registerRuntime

bridge_mapping.go:47–49  ·  view source on GitHub ↗

registerRuntime registers Runtime for interrupt handler access.

(cRt *C.JSRuntime, goRt *Runtime)

Source from the content-addressed store, hash-verified

45
46// registerRuntime registers Runtime for interrupt handler access.
47func registerRuntime(cRt *C.JSRuntime, goRt *Runtime) {
48 runtimeMapping.Store(cRt, goRt)
49}
50
51// unregisterRuntime removes Runtime mapping when closed.
52func unregisterRuntime(cRt *C.JSRuntime) {

Callers 3

NewRuntimeFunction · 0.85

Calls 1

StoreMethod · 0.80