Home |
RTTarget-32 Programming Manual System Management BIOS (SMBIOS) Advanced Programmable Interrupt Controller (APIC) Macro RT_INIT_SPINLOCK Function RTReleaseSpinlockFast |
Macro RT_INIT_SPINLOCKRT_INIT_SPINLOCK initializes a spinlock: typedef struct RTSpinlock; void RT_INIT_SPINLOCK(RTSpinlock Lock, DWORD Flags, const char * Name); ParametersLockPointer to the spinlock to initialize. FlagsPlease see macro RTSPINLOCK for all supported spinlock flags. NameA string containing the name of the spinlock. Only a pointer to this string is maintained by the spinlock, so the string must not be deallocated. It is used for diagnostics purposes only. Macro RT_INIT_SPINLOCK can be used to initialize spinlocks allocated from the heap. Generally, using RTSPINLOCK is the preferred method to initialize spinlocks.
|