Esempio n. 1
0
            public virtual OtpMbox create(System.String name)
            {
                OtpMbox m = null;

                lock (byName)
                {
                    if (get(name) != null)
                    {
                        return(null);
                    }
                    Erlang.Pid pid = enclosingInstance.createPid();
                    m            = new OtpMbox(enclosingInstance, pid, name);
                    byPid[pid]   = new WeakReference(m);
                    byName[name] = new WeakReference(m);
                }
                return(m);
            }