Source/NFX.Erlang/Connect/ErlLocalNode.cs
/// <summary>
/// Create an Erlang <see cref="ErlPort"/>. Erlang ports are
/// based upon some node specific information; this method creates a
/// port using the information in this node. Each call to this method
/// produces a unique port. It may not be meaningful to create a port
/// in a non-Erlang environment, but this method is provided for
/// completeness
/// </summary>
Create an Erlang . Erlang ports are
based upon some node specific information; this method creates a
port using the information in this node. Each call to this method
produces a unique port. It may not be meaningful to create a port
in a non-Erlang environment, but this method is provided for
completeness
Create an Erlang . Erlang ports are based upon some node specific information ; this method creates a port using the information in this node . Each call to this method produces a unique port . It may not be meaningful to create a port in a non - Erlang environment but this method is provided for completeness
internal ErlPort CreatePort()
    {
      repeat:
      int n = Interlocked.Increment(ref m_PortCount);
      while (n > 0x0fffffff)
      {
        Interlocked.CompareExchange(ref m_PortCount, 0, n);
        goto repeat;
      }
      return new ErlPort(NodeName, n, m_Creation);
    }
internal ErlPort CreatePort ( ) { repeat : int n = Interlocked . Increment ( ref m_PortCount ) ; while ( n > 0x0fffffff ) { Interlocked . CompareExchange ( ref m_PortCount , 0 , n ) ; goto repeat ; } return new ErlPort ( NodeName , n , m_Creation ) ; }
Create an Erlang .
Create an Erlang .
// The label handles conditional jump in a very rare case of an overflow