C4 Engine
C4 Engine API Documentation

Lock::AcquireExclusive

Defined in:  C4Threads.h
Acquires exclusive access to a lock.
Prototype

void AcquireExclusive(void);

Description
The AcquireExclusive function acquires exclusive access to a lock. If exclusive or shared access to the lock has already been acquired by another thread at the time this function is called, then the calling thread blocks until all access to the lock has been released by other threads.

During the time that a lock is acquired with exclusive access, all other attempts to acquire the lock with either exclusive or shared access will block.

Exclusive access to a lock must be relinquished by calling the Lock::ReleaseExclusive function when the calling thread no longer needs the lock.
See Also

Lock::ReleaseExclusive

Lock::AcquireShared

Lock::ReleaseShared