Share via


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), and so forth, 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