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

◆ TimeoutTracker() [1/2]

System.Threading.ReaderWriterLockSlim.TimeoutTracker.TimeoutTracker ( TimeSpan timeout)
inline

Definition at line 33 of file ReaderWriterLockSlim.cs.

34 {
35 long num = (long)timeout.TotalMilliseconds;
36 if (num < -1 || num > int.MaxValue)
37 {
38 throw new ArgumentOutOfRangeException("timeout");
39 }
40 _total = (int)num;
41 if (_total != -1 && _total != 0)
42 {
43 _start = Environment.TickCount;
44 }
45 else
46 {
47 _start = 0;
48 }
49 }

References System.Threading.ReaderWriterLockSlim.TimeoutTracker._start, System.Threading.ReaderWriterLockSlim.TimeoutTracker._total, System.Environment.TickCount, and System.timeout.