Defined in:Acquires shared access to a lock.
AcquireSharedfunction acquires shared access to a lock. If exclusive to the lock has already been acquired by another thread at the time this function is called, then the calling thread blocks until the exclusive access has been released. However, all other shared acquisitions of the lock will succeed without blocking.
To balance each call to the
AcquireSharedfunction, shared access to a lock must be relinquished by calling the
Lock::ReleaseSharedfunction when the calling thread no longer needs the lock.