]>
git.proxmox.com Git - mirror_edk2.git/blob - MdeModulePkg/Core/Dxe/Library.h
2 Internal functions shared in DxeCore module.
4 Copyright (c) 2006 - 2008, Intel Corporation. <BR>
5 All rights reserved. This program and the accompanying materials
6 are licensed and made available under the terms and conditions of the BSD License
7 which accompanies this distribution. The full text of the license may be found at
8 http://opensource.org/licenses/bsd-license.php
10 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
11 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
15 #ifndef _DXE_LIBRARY_H_
16 #define _DXE_LIBRARY_H_
20 Raising to the task priority level of the mutual exclusion
21 lock, and then acquires ownership of the lock.
23 @param Lock The lock to acquire
35 Initialize a basic mutual exclusion lock. Each lock
36 provides mutual exclusion access at it's task priority
37 level. Since there is no-premption (at any TPL) or
38 multiprocessor support, acquiring the lock only consists
39 of raising to the locks TPL.
41 @param Lock The EFI_LOCK structure to initialize
43 @retval EFI_SUCCESS Lock Owned.
44 @retval EFI_ACCESS_DENIED Reentrant Lock Acquisition, Lock not Owned.
48 CoreAcquireLockOrFail (
54 Releases ownership of the mutual exclusion lock, and
55 restores the previous task priority level.
57 @param Lock The lock to release