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()
979
979
}
980
980
981
981
// The cached number of CPUs available for the current process
982
- static DWORD g_currentProcessCpuCount = 0 ;
982
+ DWORD g_currentProcessCpuCount = 0 ;
983
983
984
984
// The cached flag indicating whether there is a cpu quota limit
985
- static BOOL g_isCpuQuotaLimited = false ;
985
+ BOOL g_isCpuQuotaLimited = false ;
986
986
987
987
// ******************************************************************************
988
988
// 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)
1552
1552
return GetSyncBlock ()->TryEnterMonitor (timeOut);
1553
1553
}
1554
1554
1555
- extern DWORD g_currentProcessCpuCount = 0 ;
1555
+ extern DWORD g_currentProcessCpuCount;
1556
1556
1557
- extern BOOL g_isCpuQuotaLimited = false ;
1557
+ extern BOOL g_isCpuQuotaLimited;
1558
1558
1559
1559
AwareLock::EnterHelperResult ObjHeader::EnterObjMonitorHelperSpin (Thread* pCurThread)
1560
1560
{
Original file line number Diff line number Diff line change @@ -24,6 +24,9 @@ public static extern int ExitCode
24
24
[ MethodImplAttribute ( MethodImplOptions . InternalCall ) ]
25
25
private static extern int GetProcessorCount ( ) ;
26
26
27
+ [ MethodImplAttribute ( MethodImplOptions . InternalCall ) ]
28
+ private static extern bool GetIsCpuQuotaLimited ( ) ;
29
+
27
30
public static extern int TickCount
28
31
{
29
32
[ MethodImplAttribute ( MethodImplOptions . InternalCall ) ]
You can’t perform that action at this time.
0 commit comments