(pid int)
| 187 | } |
| 188 | |
| 189 | func (e *Engine) getProcess(pid int) *process.Process { |
| 190 | if p := e.getProcessFast(pid); p != nil { |
| 191 | return p |
| 192 | } |
| 193 | e.mu.Lock() |
| 194 | defer e.mu.Unlock() |
| 195 | return e.ensureProcessLocked(pid) |
| 196 | } |
| 197 | |
| 198 | func (e *Engine) countRunning() int { |
| 199 | e.mu.RLock() |
no test coverage detected