Home | History | Annotate | Download | only in BaseSynchronizationLib

Lines Matching refs:SpinLock

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

49 state, and returns SpinLock. Optimal performance can be achieved by calling
51 SpinLock.
53 If SpinLock is NULL, then ASSERT().
55 @param SpinLock A pointer to the spin lock to initialize to the released
58 @return SpinLock is in release state.
64 OUT SPIN_LOCK *SpinLock
67 ASSERT (SpinLock != NULL);
68 *SpinLock = SPIN_LOCK_RELEASED;
69 return SpinLock;
75 This function checks the state of the spin lock specified by SpinLock. If
76 SpinLock is in the released state, then this function places SpinLock in the
77 acquired state and returns SpinLock. Otherwise, this function waits
79 acquired state and returns SpinLock. All state transitions of SpinLock must
82 If SpinLock is NULL, then ASSERT().
83 If SpinLock was not initialized with InitializeSpinLock(), then ASSERT().
84 If PcdSpinLockTimeout is not zero, and SpinLock is can not be acquired in
87 @param SpinLock A pointer to the spin lock to place in the acquired state.
89 @return SpinLock acquired the lock.
95 IN OUT SPIN_LOCK *SpinLock
108 while (!AcquireSpinLockOrFail (SpinLock)) {
111 } else if (!AcquireSpinLockOrFail (SpinLock)) {
141 while (!AcquireSpinLockOrFail (SpinLock)) {
156 return SpinLock;
162 This function checks the state of the spin lock specified by SpinLock. If
163 SpinLock is in the released state, then this function places SpinLock in the
165 transitions of SpinLock must be performed using MP safe mechanisms.
167 If SpinLock is NULL, then ASSERT().
168 If SpinLock was not initialized with InitializeSpinLock(), then ASSERT().
170 @param SpinLock A pointer to the spin lock to place in the acquired state.
172 @retval TRUE SpinLock was placed in the acquired state.
173 @retval FALSE SpinLock could not be acquired.
179 IN OUT SPIN_LOCK *SpinLock
184 ASSERT (SpinLock != NULL);
186 LockValue = *SpinLock;
191 (VOID**)SpinLock,
201 This function places the spin lock specified by SpinLock in the release state
202 and returns SpinLock.
204 If SpinLock is NULL, then ASSERT().
205 If SpinLock was not initialized with InitializeSpinLock(), then ASSERT().
207 @param SpinLock A pointer to the spin lock to release.
209 @return SpinLock released lock.
215 IN OUT SPIN_LOCK *SpinLock
220 ASSERT (SpinLock != NULL);
222 LockValue = *SpinLock;
225 *SpinLock = SPIN_LOCK_RELEASED;
226 return SpinLock;