IHostCrst Interface
Serves as the host's representation of a critical section for threading.
Methods
Method | Description |
---|---|
Enter Method | Enters the critical section. |
Leave Method | Leaves the critical section. |
SetSpinCount Method | Sets the spin count for the critical section. |
TryEnter Method | Attempts to enter the critical section, and reports success or failure immediately. |
Remarks
IHostCrst
allows the common language runtime (CLR) to communicate directly with the host's representation of a critical section, rather than using Win32 functions such as EnterCriticalSection
or LeaveCriticalSection
.
Requirements
Platforms: See System Requirements.
Header: MSCorEE.h
Library: Included as a resource in MSCorEE.dll
.NET Framework Versions: Available since 2.0
See also
Συνεργαστείτε μαζί μας στο GitHub
Μπορείτε να βρείτε την πηγή για αυτό το περιεχόμενο στο GitHub, όπου μπορείτε επίσης να δημιουργήσετε και να εξετάσετε ζητήματα και αιτήματα έλξης. Για περισσότερες πληροφορίες, ανατρέξτε στον οδηγό συνεργατών.