[ros-dev] Guarded mutex

Aliberti Emanuele ea at iol.it
Sun Oct 31 22:32:40 CET 2004


I found a note, in Kernel Mustard's (Steve Dispensa) blog, about guarded 
mutexes, which is a completely new synchronization object to me.

typedef struct _KGUARDED_MUTEX
  ULONG     Count;
  PKTHREAD  Owner;
  ULONG     Contention;
  KGATE     Gate;
  WORD      KernelApcDisable;
  WORD      SpecialApcDisable;
  ULONG     CombinedApcDisable;
} KGUARDED_MUTEX, *PKGUARDED_MUTEX;

What are they? KM says they are less expensive than FAST_MUTEXes.

By the way, what is a KGATE?

Emanuele


More information about the Ros-dev mailing list