Expand Minimize

KSEVENTS_LOCKTYPE enumeration

The KSEVENTS_LOCKTYPE enumeration identifies the type of exclusion lock. The types are used with EventFlags in several event-set helper functions.

Syntax


typedef enum  { 
  KSEVENTS_NONE          = 0,
  KSEVENTS_SPINLOCK      = 1,
  KSEVENTS_MUTEX         = 2,
  KSEVENTS_FMUTEX        = 3,
  KSEVENTS_FMUTEXUNSAFE  = 4,
  KSEVENTS_INTERRUPT     = 5,
  KSEVENTS_ERESOURCE     = 6
} KSEVENTS_LOCKTYPE;

Constants

KSEVENTS_NONE

No lock.

KSEVENTS_SPINLOCK

Lock is assumed to be a KSPIN_LOCK.

KSEVENTS_MUTEX

Lock is assumed to be a KMUTEX.

KSEVENTS_FMUTEX

Lock is assumed to be a FAST_MUTEX and is acquired by raising IRQL to APC_LEVEL.

KSEVENTS_FMUTEXUNSAFE

Lock is assumed to be a FAST_MUTEX and is acquired without raising IRQL to APC_LEVEL.

KSEVENTS_INTERRUPT

Lock is assumed to be an interrupt synchronization spin lock.

KSEVENTS_ERESOURCE

Lock is assumed to be an ERESOURCE.

Requirements

Header

Ks.h (include Ks.h)

 

 

Send comments about this topic to Microsoft

Show:
© 2015 Microsoft