Example #1
0
            public OtpMbox create(String name, bool sync)
            {
                OtpMbox m = null;

                lock (this)
                {
                    if (get(name) != null)
                    {
                        return(null);
                    }
                    OtpErlangPid pid = node.createPid();
                    m = sync ? new OtpMbox(node, pid, name) : new OtpActorMbox(sched, node, pid, name);
                    byPid.Add(pid, new WeakReference(m));
                    byName.Add(name, new WeakReference(m));
                }
                return(m);
            }