Resources | developer.brewmp.com Resources | developer.brewmp.com

Developer

resources

ICritSect interface

Critical section objects are represented by the ICritSect interface. Typically, a user of the ICritSect interface holds one ICritSect per data set to maximize locking granularity.

The most common way to obtain a new ICritSect interface is through direct creation using IEnv_CreateInstance(). However, ICritSect interfaces may also be passed as parameters. In OS Services, a critical section begins either when a thread calls ICritSect_Enter(), or when it returns successfully from ICritSect_TryEnter(). A critical section ends when a thread calls ICritSect_Leave().

Required Files
AEEICritSect.h
Class ID(s)
AEECLSID_CritSect
Interface ID
AEEIID_ICritSect
Location
platform\system\inc in the Brew MP SDK

For more information on ICritSect, see the http://developer.brewmp.com/reference/api-all.