{
BOOLEANEnable;
PLIST_ENTRY ListEntry;
/* Disable interrupts and acquire the spinlock */
Enable = _ExiDisableInteruptsAndAcquireSpinlock(Lock);
/* Check if the list is empty */if (IsListEmpty(ListHead))
{
/* Return NULL */
ListEntry = NULL;
}
else
{
/* Remove the first entry from the list head */
ListEntry = RemoveHeadList(ListHead);
#if DBG
ListEntry->Flink = (PLIST_ENTRY)0xBADDD0FF;
ListEntry->Blink = (PLIST_ENTRY)0xBADDD0FF;
#endif
}
/* Release the spinlock and restore interrupts */_ExiReleaseSpinLockAndRestoreInterupts(Lock, Enable);
/* Return the entry */return ListEntry;
}
Generated on Tue May 22 2012 06:08:22 for ReactOS by
1.7.6.1
ReactOS is a registered trademark or a trademark of ReactOS Foundation in the United States and other countries.