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