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

◆ OnGen2GCCallback()

bool System.Threading.PortableThreadPool.OnGen2GCCallback ( )
inlineprivate

Definition at line 1600 of file PortableThreadPool.cs.

1601 {
1602 GCMemoryInfo gCMemoryInfo = GC.GetGCMemoryInfo();
1603 _memoryLimitBytes = gCMemoryInfo.HighMemoryLoadThresholdBytes;
1604 _memoryUsageBytes = Math.Min(gCMemoryInfo.MemoryLoadBytes, gCMemoryInfo.HighMemoryLoadThresholdBytes);
1605 return true;
1606 }

References System.Threading.PortableThreadPool._memoryLimitBytes, System.Threading.PortableThreadPool._memoryUsageBytes, System.GC.GetGCMemoryInfo(), System.GCMemoryInfo.HighMemoryLoadThresholdBytes, System.GCMemoryInfo.MemoryLoadBytes, and System.Math.Min().

Referenced by System.Threading.PortableThreadPool.GateThread.GateThreadStart().