Udostępnij za pośrednictwem


IUMSThreadProxy::EnterCriticalRegion Method

Called in order to enter a critical region. When inside a critical region, the scheduler will not observe asynchronous blocking operations that happen during the region. This means that the scheduler will not be reentered for page faults, thread suspensions, kernel asynchronous procedure calls (APCs), etc., for a UMS thread.

virtual int EnterCriticalRegion() =0;

Return Value

The new depth of critical region. Critical regions are reentrant.

Requirements

Header: concrtrm.h

Namespace: Concurrency

See Also

Reference

IUMSThreadProxy Structure

IUMSThreadProxy::ExitCriticalRegion Method