XGEnterExclusiveLock

Enters and exclusive lock used to synchronize calls to XGSetHardwareVersion with XG texture computer creation.

Syntax

BOOL XGEnterExclusiveLock()  

Return value

Type: BOOL 

true if the lock is acquired; false if the lock was not acquired or if exclusive locking is disabled.

Remarks

Use the XGEnterExclusiveLock and XGLeaveExclusiveLock APIs to manually acquire and release the XG critical section. If exclusive locking is disabled, these APIs have no effect and XGEnterExclusiveLock returns false.

See also

XGEnableExclusiveLocking

Requirements

Header: Declared in xg.h.

Library: Use xg_x.lib.