]>
git.proxmox.com Git - efi-boot-shim.git/blob - gnu-efi/lib/lock.c
3 Copyright (c) 1998 Intel Corporation
32 Initialize a basic mutual exclusion lock. Each lock
33 provides mutual exclusion access at it's task priority
34 level. Since there is no-premption (at any TPL) or
35 multiprocessor support, acquiring the lock only consists
36 of raising to the locks TPL.
38 Note on a debug build the lock is acquired and released
39 to help ensure proper usage.
43 Lock - The FLOCK structure to initialize
45 Priority - The task priority level of the lock
50 An initialized F Lock structure.
68 Raising to the task priority level of the mutual exclusion
69 lock, and then acquires ownership of the lock.
73 Lock - The lock to acquire
93 Releases ownership of the mutual exclusion lock, and
94 restores the previous task priority level.
98 Lock - The lock to release
106 RtReleaseLock (Lock
);