TCRWaitMode Enumeration

Source: Math387.cs · Assembly: Dew.Math

public enum TCRWaitMode

The waiting method used by the sorted critical section.

Values

NameDescription
crwSleep0The critical section will use sleep(0) to wait. (Default) Use for computational threads with max-thread count less than hyper-threaded core count.
crwSleep1The 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.
crwSwitchThreadThe critical section will call SwitchToThread to wait.