예제 #1
0
 public Node(AtomicReference <Thread> edit)
 {
     _edit  = edit;
     _array = new object[32];
 }
예제 #2
0
 /// <summary>
 /// Construct an atom with given initial value and metadata.
 /// </summary>
 /// <param name="state">The initial value.</param>
 /// <param name="meta">The metadata to attach.</param>
 public Atom(object state, IPersistentMap meta)
     : base(meta)
 {
     _state = new AtomicReference <object>(state);
 }
예제 #3
0
 public Node(AtomicReference <Thread> edit, object[] array)
 {
     _edit  = edit;
     _array = array;
 }
예제 #4
0
 /// <summary>
 /// Construct an atom with given intiial value.
 /// </summary>
 /// <param name="state">The initial value</param>
 public Atom(object state)
 {
     _state = new AtomicReference <object>(state);
 }