You are here: Symbol Reference > Dew Namespace > Dew.Math Namespace > Structs, Records, Enums > Dew.Math.TCRWaitMode Enumeration
Dew Math for .NET
ContentsIndexHome
PreviousUpNext
Dew.Math.TCRWaitMode Enumeration

The waiting method used by the sorted critical section.

Syntax
C#
Visual Basic
public enum TCRWaitMode : uint { crwSleep0 = 0, crwSleep1 = 1, crwSwitchThread = 2 }

Math387.cs

Members 
Description 
crwSleep0 = 0 
The critical section will use sleep(0) to wait. (Default) Use for computational threads with max-thread count less than hyper-threaded core count. 
crwSleep1 = 1 
The critical section will enter sleep(1) to wait. Use when cooperative multi-threading is used. Number of launched threads executing concurrently is more than hyper-threaded core count or working with I/O devices. 
crwSwitchThread = 2 
The critical section will call SwitchToThread to wait. 
Copyright (c) 1999-2024 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!