SupervisorContext returns a Context with maximum privileges in k. It should only be used by goroutines outside the control of the emulated kernel defined by e. Callers are responsible for ensuring that the returned Context is not used concurrently with changes to the Kernel.
()
| 1946 | // Callers are responsible for ensuring that the returned Context is not used |
| 1947 | // concurrently with changes to the Kernel. |
| 1948 | func (k *Kernel) SupervisorContext() context.Context { |
| 1949 | return &supervisorContext{ |
| 1950 | Kernel: k, |
| 1951 | Logger: log.Log(), |
| 1952 | } |
| 1953 | } |
| 1954 | |
| 1955 | // SocketRecord represents a socket recorded in Kernel.sockets. |
| 1956 | // |