![]() |
Home |
|
Function RTKLockSpinlockRTKLockSpinlock locks a spinlock and disables interrupts: DWORD RTKLockSpinlock(RTKSpinlock Lock); ParametersLockReference to a spinlock previously created with RTKCreateSpinlock. return valueThe interrupt enable/disable state before the spinlock is locked. This value must be passed to the subsequent RTKReleaseSpinlock call. If the spinlock is locked, this function will wait indefinitely until it becomes available. Nested locking of the same spinlock is not supported. While a spinlock is locked, the application may not enable interrupts and it may not call any RTKernel-32 API functions which can cause a task switch.
|