Jump to content

DosAcquireSpinLock: Difference between revisions

From EDM2
Erdmann (talk | contribs)
No edit summary
Erdmann (talk | contribs)
No edit summary
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
Acquire a spinlock for multiprocessor serialization
==Syntax==
==Syntax==
  VOID APIENTRY DosAcquireSpinLock ([[HSPINLOCK]] Handle)
  VOID APIENTRY DosAcquireSpinLock ([[HSPINLOCK]] Handle)
Line 4: Line 6:
==Parameter==
==Parameter==
;Handle ([[HSPINLOCK]]):Handle to a spin lock
;Handle ([[HSPINLOCK]]):Handle to a spin lock
==Remarks==
DosAcquireSpinLock is passed a handle which was returned by DosCreateSpinLock When control is returned to the requester, the spin lock has been acquired and interrupts are disabled. A call to DosReleaseSpinLock must follow very shortly. Spin locks can be nested.


==Related Functions==
==Related Functions==
*[[DosCreateSpinLock]]
*[[DosFreeSpinLock]]
*[[DosFreeSpinLock]]
*[[DosReleaseSpinLock]]
*[[DosReleaseSpinLock]]


[[Category:DevHlps]]
[[Category:Dos]]

Latest revision as of 10:11, 19 July 2023

Acquire a spinlock for multiprocessor serialization

Syntax

VOID APIENTRY DosAcquireSpinLock (HSPINLOCK Handle)

Parameter

Handle (HSPINLOCK)
Handle to a spin lock

Remarks

DosAcquireSpinLock is passed a handle which was returned by DosCreateSpinLock When control is returned to the requester, the spin lock has been acquired and interrupts are disabled. A call to DosReleaseSpinLock must follow very shortly. Spin locks can be nested.

Related Functions