Dreamine.Threading.Windows
1.0.1
이 패키지는 다른 어셈블리에서 `DMContainer`를 partial class로 확장하지 않습니다. 등록은 별도의 Registration 클래스를 통해 제공합니다.
Toggle main menu visibility
로딩중...
검색중...
일치하는것 없음
WindowsCpuInfoProvider.cs
이 파일의 문서화 페이지로 가기
1
using
Dreamine.Threading.Interfaces;
2
3
namespace
Dreamine.Threading.Windows.Services
;
4
13
public
sealed
class
WindowsCpuInfoProvider
: ICpuInfoProvider
14
{
31
public
int
GetLogicalProcessorCount
()
32
{
33
return
Environment.ProcessorCount <= 0
34
? 1
35
: Environment.ProcessorCount;
36
}
37
62
public
bool
IsValidCoreIndex
(
int
coreIndex)
63
{
64
return
coreIndex >= 0 && coreIndex <
GetLogicalProcessorCount
();
65
}
66
}
Dreamine.Threading.Windows.Services
Definition
WindowsCpuInfoProvider.cs:3
Dreamine.Threading.Windows.Services.WindowsCpuInfoProvider
Definition
WindowsCpuInfoProvider.cs:14
Dreamine.Threading.Windows.Services.WindowsCpuInfoProvider.IsValidCoreIndex
bool IsValidCoreIndex(int coreIndex)
Definition
WindowsCpuInfoProvider.cs:62
Dreamine.Threading.Windows.Services.WindowsCpuInfoProvider.GetLogicalProcessorCount
int GetLogicalProcessorCount()
Definition
WindowsCpuInfoProvider.cs:31
Services
WindowsCpuInfoProvider.cs
다음에 의해 생성됨 :
1.17.0