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.
Serves as the host's representation of a critical section for threading.
interface IHostCrst : IUnknown {
HRESULT Enter (
[in] DWORD option
);
HRESULT Leave ();
HRESULT SetSpinCount (
[in] DWORD dwSpinCount
);
HRESULT TryEnter (
[in] DWORD option,
[out] BOOL *pbSucceeded
);
};
Methods
Method |
Description |
---|---|
Enters the critical section. |
|
Leaves the critical section. |
|
Sets the spin count for the critical section. |
|
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: Windows 2000, Windows XP, Windows Server 2003 family
Header: MSCorEE.idl
Library: Included as a resource in MSCorEE.dll
.NET Framework Version: 2.0