Acquires ownership of a lock. This function raises the system's current task priority level to the task priority level of the mutual exclusion lock. Then, it places the lock in the acquired state. If Lock is NULL, then ASSERT(). If Lock is not initialized, then ASSERT(). If Lock is already in the acquired state, then ASSERT(). @param Lock A pointer to the lo
| 447 | |
| 448 | **/ |
| 449 | VOID |
| 450 | EFIAPI |
| 451 | EfiAcquireLock ( |
| 452 | IN EFI_LOCK *Lock |
| 453 | ) |
| 454 | { |
| 455 | ASSERT (Lock != NULL); |
| 456 | if (!Lock) { |
| 457 | return; |
| 458 | } |
| 459 | ASSERT (Lock->Lock == EfiLockReleased); |
| 460 | |
| 461 | Lock->OwnerTpl = gBS->RaiseTPL (Lock->Tpl); |
| 462 | Lock->Lock = EfiLockAcquired; |
| 463 | } |
| 464 | |
| 465 | /** |
| 466 | Acquires ownership of a lock. |
no outgoing calls
no test coverage detected