Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Specifies whether to disable spin-waiting for a critical section when contended.
<configuration>
<runtime>
<Crst_DisableSpinWait>
Syntax
<Crst_DisableSpinWait enabled="true | false"/>
Attributes and Elements
The following sections describe attributes, child elements, and parent elements.
Attributes
Attribute | Description |
---|---|
enabled | Specifies whether spin-waiting for critical sections when they are contended is disabled. |
enabled Attribute
Value | Description |
---|---|
1 | Disable spin-waiting when a critical section cannot be acquired. |
0 | Do not disable spin-waiting when a critical section cannot be acquired. This is the default value. |
Child Elements
None.
Parent Elements
Element | Description |
---|---|
configuration |
The root element in every configuration file used by the common language runtime and .NET Framework applications. |
runtime |
Contains information about various runtime configuration settings. |
Example
The following example disables spin-waiting in critical sections when contended.
<configuration>
<runtime>
<Crst_DisableSpinWait enabled="1"/>
</runtime>
</configuration>
See also
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.