K2Informatics.Erlnet.OtpNode.Mailboxes.create C# (CSharp) Méthode

create() public méthode

public create ( String name, bool sync ) : OtpMbox
name String
sync bool
Résultat OtpMbox
            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;
            }

Same methods

OtpNode.Mailboxes::create ( bool sync ) : OtpMbox