File tree Expand file tree Collapse file tree 3 files changed +7
-4
lines changed
mono/System.Private.CoreLib/src/System Expand file tree Collapse file tree 3 files changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -979,10 +979,10 @@ int GetTotalProcessorCount()
979979}
980980
981981// The cached number of CPUs available for the current process
982- static DWORD g_currentProcessCpuCount = 0 ;
982+ DWORD g_currentProcessCpuCount = 0 ;
983983
984984// The cached flag indicating whether there is a cpu quota limit
985- static BOOL g_isCpuQuotaLimited = false ;
985+ BOOL g_isCpuQuotaLimited = false ;
986986
987987// ******************************************************************************
988988// Returns the number of processors that a process has been configured to run on
Original file line number Diff line number Diff line change @@ -1552,9 +1552,9 @@ BOOL ObjHeader::TryEnterObjMonitor(INT32 timeOut)
15521552 return GetSyncBlock ()->TryEnterMonitor (timeOut);
15531553}
15541554
1555- extern DWORD g_currentProcessCpuCount = 0 ;
1555+ extern DWORD g_currentProcessCpuCount;
15561556
1557- extern BOOL g_isCpuQuotaLimited = false ;
1557+ extern BOOL g_isCpuQuotaLimited;
15581558
15591559AwareLock::EnterHelperResult ObjHeader::EnterObjMonitorHelperSpin (Thread* pCurThread)
15601560{
Original file line number Diff line number Diff line change @@ -24,6 +24,9 @@ public static extern int ExitCode
2424 [ MethodImplAttribute ( MethodImplOptions . InternalCall ) ]
2525 private static extern int GetProcessorCount ( ) ;
2626
27+ [ MethodImplAttribute ( MethodImplOptions . InternalCall ) ]
28+ private static extern bool GetIsCpuQuotaLimited ( ) ;
29+
2730 public static extern int TickCount
2831 {
2932 [ MethodImplAttribute ( MethodImplOptions . InternalCall ) ]
You can’t perform that action at this time.
0 commit comments