Source/NFX.Erlang/Connect/ErlLocalNode.cs
/// <summary>
/// Create an Erlang {@link Ref reference}. Erlang
/// references are based upon some node specific information; this
/// method creates a reference using the information in this node.
/// Each call to this method produces a unique reference
/// </summary>
Create an Erlang  Ref reference. Erlang
references are based upon some node specific information; this
method creates a reference using the information in this node.
Each call to this method produces a unique reference
Create an Erlang Ref reference . Erlang references are based upon some node specific information ; this method creates a reference using the information in this node . Each call to this method produces a unique reference
public ErlRef CreateRef()
    {
      lock (m_RefIds)
      {
        m_RefIds[0]++;
        if (m_RefIds[0] > 0x3ffff)
        {
          m_RefIds[0] = 0;
          m_RefIds[1]++;
          if (m_RefIds[1] == 0)
            m_RefIds[2]++;
        }
        return new ErlRef(NodeName, m_RefIds, m_Creation);
      }
    }
public ErlRef CreateRef ( ) { lock ( m_RefIds ) { m_RefIds [ 0 ] ++ ; if ( m_RefIds [ 0 ] > 0x3ffff ) { m_RefIds [ 0 ] = 0 ; m_RefIds [ 1 ] ++ ; if ( m_RefIds [ 1 ] == 0 ) m_RefIds [ 2 ] ++ ; } return new ErlRef ( NodeName , m_RefIds , m_Creation ) ; } }
Create an Erlang {@link Ref reference}.
Create an Erlang { @link Ref reference } .
// increment ref ids (3 ints: 18 + 32 + 32 bits)