Dreamine.Threading 1.0.1
이 패키지는 .NET ThreadPool이나 Task Parallel Library를 대체하려는 목적이 아닙니다.
로딩중...
검색중...
일치하는것 없음
Dreamine.Threading.Models.DreamineThreadOptions 클래스 참조sealed

더 자세히 ...

Public 멤버 함수

DreamineThreadOptions Normalize ()

속성

string Name = "DreamineThread" [get, set]
DreamineThreadPriority Priority = DreamineThreadPriority.Normal [get, set]
int IntervalMs = 10 [get, set]
DreamineThreadCoreMode CoreMode = DreamineThreadCoreMode.Auto [get, set]
int? CoreIndex [get, set]
int AutoThreadsPerCore = 2 [get, set]
int OverflowPollingIntervalMs = 100 [get, set]
bool AutoStart = true [get, set]
bool UseHighPrecisionTimer = true [get, set]
bool UseAdaptiveCpuDelay = true [get, set]
bool YieldWhenIntervalIsZero = true [get, set]
TimeSpan StopTimeout = TimeSpan.FromSeconds(2) [get, set]

상세한 설명

Dreamine 작업자 스레드 생성 옵션을 나타냅니다.

DreamineThreadOptions.cs 파일의 11 번째 라인에서 정의되었습니다.

멤버 함수 문서화

◆ Normalize()

DreamineThreadOptions Dreamine.Threading.Models.DreamineThreadOptions.Normalize ( )
inline

잘못된 이름·간격·코어당 스레드 수·중지 제한 시간을 기본값으로 보정한 복사본을 생성합니다.

반환값
정규화된 새 스레드 옵션입니다.

DreamineThreadOptions.cs 파일의 149 번째 라인에서 정의되었습니다.

150 {
151 return new DreamineThreadOptions
152 {
153 Name = string.IsNullOrWhiteSpace(Name) ? "DreamineThread" : Name,
154 Priority = Priority,
155 IntervalMs = IntervalMs < 0 ? 10 : IntervalMs,
156 CoreMode = CoreMode,
157 CoreIndex = CoreIndex,
158 AutoThreadsPerCore = AutoThreadsPerCore <= 0 ? 2 : AutoThreadsPerCore,
159 OverflowPollingIntervalMs = OverflowPollingIntervalMs < 0 ? 100 : OverflowPollingIntervalMs,
160 AutoStart = AutoStart,
161 UseHighPrecisionTimer = UseHighPrecisionTimer,
162 YieldWhenIntervalIsZero = YieldWhenIntervalIsZero,
163 UseAdaptiveCpuDelay = UseAdaptiveCpuDelay,
164 StopTimeout = StopTimeout <= TimeSpan.Zero ? TimeSpan.FromSeconds(2) : StopTimeout
165 };
166 }

다음을 참조함 : AutoStart, AutoThreadsPerCore, CoreIndex, CoreMode, IntervalMs, Name, OverflowPollingIntervalMs, Priority, StopTimeout, UseAdaptiveCpuDelay, UseHighPrecisionTimer, YieldWhenIntervalIsZero.

다음에 의해서 참조됨 : Dreamine.Threading.Allocators.AutoCoreAllocator.Allocate(), Dreamine.Threading.Services.DreamineThread.DreamineThread(), Dreamine.Threading.Services.DreamineThreadManager.Register().

이 함수를 호출하는 함수들에 대한 그래프입니다.:

속성 문서화

◆ AutoStart

bool Dreamine.Threading.Models.DreamineThreadOptions.AutoStart = true
getset

생성 직후 작업자를 시작할지 여부를 가져오거나 설정합니다.

DreamineThreadOptions.cs 파일의 91 번째 라인에서 정의되었습니다.

91{ get; set; } = true;

다음에 의해서 참조됨 : Normalize().

◆ AutoThreadsPerCore

int Dreamine.Threading.Models.DreamineThreadOptions.AutoThreadsPerCore = 2
getset

자동 모드에서 CPU 코어당 최대 전용 작업자 스레드 수를 가져오거나 설정합니다.

DreamineThreadOptions.cs 파일의 71 번째 라인에서 정의되었습니다.

71{ get; set; } = 2;

다음에 의해서 참조됨 : Dreamine.Threading.Allocators.AutoCoreAllocator.AllocateAuto(), Normalize().

◆ CoreIndex

int? Dreamine.Threading.Models.DreamineThreadOptions.CoreIndex
getset

수동으로 할당할 CPU 코어 인덱스를 가져오거나 설정합니다.

DreamineThreadOptions.cs 파일의 61 번째 라인에서 정의되었습니다.

61{ get; set; }

다음에 의해서 참조됨 : Dreamine.Threading.Allocators.AutoCoreAllocator.AllocateManual(), Normalize().

◆ CoreMode

DreamineThreadCoreMode Dreamine.Threading.Models.DreamineThreadOptions.CoreMode = DreamineThreadCoreMode.Auto
getset

CPU 코어 할당 모드를 가져오거나 설정합니다.

DreamineThreadOptions.cs 파일의 51 번째 라인에서 정의되었습니다.

다음에 의해서 참조됨 : Normalize().

◆ IntervalMs

int Dreamine.Threading.Models.DreamineThreadOptions.IntervalMs = 10
getset

밀리초 단위 기본 실행 주기 간격을 가져오거나 설정합니다.

DreamineThreadOptions.cs 파일의 41 번째 라인에서 정의되었습니다.

41{ get; set; } = 10;

다음에 의해서 참조됨 : Dreamine.Threading.Policies.AdaptiveCpuCyclePolicy.GetDelayMs(), Dreamine.Threading.Policies.FixedIntervalCyclePolicy.GetDelayMs(), Normalize().

◆ Name

string Dreamine.Threading.Models.DreamineThreadOptions.Name = "DreamineThread"
getset

작업자 스레드 이름을 가져오거나 설정합니다.

DreamineThreadOptions.cs 파일의 21 번째 라인에서 정의되었습니다.

21{ get; set; } = "DreamineThread";

다음에 의해서 참조됨 : Normalize().

◆ OverflowPollingIntervalMs

int Dreamine.Threading.Models.DreamineThreadOptions.OverflowPollingIntervalMs = 100
getset

작업이 오버플로 폴링으로 할당될 때 사용할 폴링 간격을 가져오거나 설정합니다.

DreamineThreadOptions.cs 파일의 81 번째 라인에서 정의되었습니다.

81{ get; set; } = 100;

다음에 의해서 참조됨 : Dreamine.Threading.Policies.AdaptiveCpuCyclePolicy.GetDelayMs(), Dreamine.Threading.Policies.FixedIntervalCyclePolicy.GetDelayMs(), Dreamine.Threading.Policies.OverflowPollingPolicy.GetDelayMs(), Normalize().

◆ Priority

DreamineThreadPriority Dreamine.Threading.Models.DreamineThreadOptions.Priority = DreamineThreadPriority.Normal
getset

작업자 스레드 우선순위를 가져오거나 설정합니다.

DreamineThreadOptions.cs 파일의 31 번째 라인에서 정의되었습니다.

다음에 의해서 참조됨 : Normalize().

◆ StopTimeout

TimeSpan Dreamine.Threading.Models.DreamineThreadOptions.StopTimeout = TimeSpan.FromSeconds(2)
getset

중지 작업이 작업자 스레드 종료를 기다릴 제한 시간을 가져오거나 설정합니다.

DreamineThreadOptions.cs 파일의 131 번째 라인에서 정의되었습니다.

131{ get; set; } = TimeSpan.FromSeconds(2);

다음에 의해서 참조됨 : Normalize().

◆ UseAdaptiveCpuDelay

bool Dreamine.Threading.Models.DreamineThreadOptions.UseAdaptiveCpuDelay = true
getset

간격이 0일 때 적응형 CPU 지연을 사용할지 여부를 가져오거나 설정합니다.

DreamineThreadOptions.cs 파일의 111 번째 라인에서 정의되었습니다.

111{ get; set; } = true;

다음에 의해서 참조됨 : Dreamine.Threading.Policies.AdaptiveCpuCyclePolicy.GetDelayMs(), Normalize().

◆ UseHighPrecisionTimer

bool Dreamine.Threading.Models.DreamineThreadOptions.UseHighPrecisionTimer = true
getset

고정밀 타이머 해상도를 요청할지 여부를 가져오거나 설정합니다.

DreamineThreadOptions.cs 파일의 101 번째 라인에서 정의되었습니다.

101{ get; set; } = true;

다음에 의해서 참조됨 : Normalize().

◆ YieldWhenIntervalIsZero

bool Dreamine.Threading.Models.DreamineThreadOptions.YieldWhenIntervalIsZero = true
getset

간격이 0일 때 작업자 스레드가 실행권을 양보할지 여부를 가져오거나 설정합니다.

DreamineThreadOptions.cs 파일의 121 번째 라인에서 정의되었습니다.

121{ get; set; } = true;

다음에 의해서 참조됨 : Normalize().


이 클래스에 대한 문서화 페이지는 다음의 파일로부터 생성되었습니다.: