Home |
RTTarget-32 Programming Manual System Management BIOS (SMBIOS) Advanced Programmable Interrupt Controller (APIC) Function RTLockSpinlock Function RTReleaseSpinlockFast |
Function RTLockSpinlockRTLockSpinlock locks a spinlock: UINT RTLockSpinlock(RTSpinlock * Lock, DWORD Flags); ParametersLockPointer to the spinlock to lock. FlagsPlease see macro RTSPINLOCK for all supported spinlock flags. The flags specified here are ORed with the flags specified when the spinlock was initialized. Flag RT_SPIN_RECURSIVE may not be specified in a call to RTLockSpinlock. return ValueZero on failure or non-zero when the spinlock has been locked. Note that this function can only fail if flag RT_SPIN_FAIL_TIMEOUT has been specified. Unless flag RT_SPIN_NO_INTS_DISABLE has been specified, the spinlock is locked with interrupts disabled. If interrupts were enabled, RTReleaseSpinlock will re-enable interrupts. A spinlock locked with RTLockSpinlock may only be released with function RTReleaseSpinlock, but not with RTReleaseSpinlockFast.
|