Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ AddEvent()

Activity System.Diagnostics.Activity.AddEvent ( ActivityEvent e)
inline

Definition at line 736 of file Activity.cs.

737 {
738 if (_events != null || Interlocked.CompareExchange(ref _events, new DiagLinkedList<ActivityEvent>(e), null) != null)
739 {
740 _events.Add(e);
741 }
742 return this;
743 }
void Add(TKey key, TValue value)
DiagLinkedList< ActivityEvent > _events
Definition Activity.cs:345
static int CompareExchange(ref int location1, int value, int comparand)

References System.Diagnostics.Activity._events, System.Collections.Generic.Dictionary< TKey, TValue >.Add(), and System.Threading.Interlocked.CompareExchange().