TianoCore EDK2 master
|
#include "DxeMain.h"
Go to the source code of this file.
Functions | |
EFI_STATUS | CoreAcquireLockOrFail (IN EFI_LOCK *Lock) |
VOID | CoreAcquireLock (IN EFI_LOCK *Lock) |
VOID | CoreReleaseLock (IN EFI_LOCK *Lock) |
DXE Core library services.
Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent
Definition in file Library.c.
EFI_STATUS CoreAcquireLockOrFail | ( | IN EFI_LOCK * | Lock | ) |
Initialize a basic mutual exclusion lock. Each lock provides mutual exclusion access at it's task priority level. Since there is no-premption (at any TPL) or multiprocessor support, acquiring the lock only consists of raising to the locks TPL.
Lock | The EFI_LOCK structure to initialize |
EFI_SUCCESS | Lock Owned. |
EFI_ACCESS_DENIED | Reentrant Lock Acquisition, Lock not Owned. |