public OtpMbox get(OtpErlangPid pid) { lock (this) { if (byPid.ContainsKey(pid)) { WeakReference wr = byPid[pid]; OtpMbox m = (OtpMbox)wr.Target; if (m != null) { return m; } byPid.Remove(pid); } return null; } }