3
Copyright (c) 1998 Intel Corporation
24
#pragma RUNTIME_CODE(RtAcquireLock)
33
Raising to the task priority level of the mutual exclusion
34
lock, and then acquires ownership of the lock.
38
Lock - The lock to acquire
47
if (BS->RaiseTPL != NULL) {
48
Lock->OwnerTpl = BS->RaiseTPL(Lock->Tpl);
52
if (LibRuntimeRaiseTPL != NULL) {
53
Lock->OwnerTpl = LibRuntimeRaiseTPL(Lock->Tpl);
57
ASSERT (Lock->Lock == 1);
61
#pragma RUNTIME_CODE(RtAcquireLock)
70
Releases ownership of the mutual exclusion lock, and
71
restores the previous task priority level.
75
Lock - The lock to release
86
ASSERT(Lock->Lock == 1);
89
if (BS->RestoreTPL != NULL) {
94
if (LibRuntimeRestoreTPL != NULL) {
95
LibRuntimeRestoreTPL(Tpl);