Home | History | Annotate | Download | only in BaseSynchronizationLib

Lines Matching refs:SpinLock

54   This function initializes the spin lock specified by SpinLock to the released

55 state, and returns SpinLock. Optimal performance can be achieved by calling
57 SpinLock.
59 If SpinLock is NULL, then ASSERT().
61 @param SpinLock A pointer to the spin lock to initialize to the released
64 @return SpinLock is in release state.
70 OUT SPIN_LOCK *SpinLock
73 ASSERT (SpinLock != NULL);
76 *SpinLock = SPIN_LOCK_RELEASED;
79 return SpinLock;
85 This function checks the state of the spin lock specified by SpinLock. If
86 SpinLock is in the released state, then this function places SpinLock in the
87 acquired state and returns SpinLock. Otherwise, this function waits
89 acquired state and returns SpinLock. All state transitions of SpinLock must
92 If SpinLock is NULL, then ASSERT().
93 If SpinLock was not initialized with InitializeSpinLock(), then ASSERT().
94 If PcdSpinLockTimeout is not zero, and SpinLock is can not be acquired in
97 @param SpinLock A pointer to the spin lock to place in the acquired state.
99 @return SpinLock acquired the lock.
105 IN OUT SPIN_LOCK *SpinLock
118 while (!AcquireSpinLockOrFail (SpinLock)) {
121 } else if (!AcquireSpinLockOrFail (SpinLock)) {
151 while (!AcquireSpinLockOrFail (SpinLock)) {
166 return SpinLock;
172 This function checks the state of the spin lock specified by SpinLock. If
173 SpinLock is in the released state, then this function places SpinLock in the
175 transitions of SpinLock must be performed using MP safe mechanisms.
177 If SpinLock is NULL, then ASSERT().
178 If SpinLock was not initialized with InitializeSpinLock(), then ASSERT().
180 @param SpinLock A pointer to the spin lock to place in the acquired state.
182 @retval TRUE SpinLock was placed in the acquired state.
183 @retval FALSE SpinLock could not be acquired.
189 IN OUT SPIN_LOCK *SpinLock
195 ASSERT (SpinLock != NULL);
197 LockValue = *SpinLock;
202 (VOID**)SpinLock,
214 This function places the spin lock specified by SpinLock in the release state
215 and returns SpinLock.
217 If SpinLock is NULL, then ASSERT().
218 If SpinLock was not initialized with InitializeSpinLock(), then ASSERT().
220 @param SpinLock A pointer to the spin lock to release.
222 @return SpinLock released the lock.
228 IN OUT SPIN_LOCK *SpinLock
233 ASSERT (SpinLock != NULL);
235 LockValue = *SpinLock;
239 *SpinLock = SPIN_LOCK_RELEASED;
242 return SpinLock;