Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

33 lines
950 B

  1. /************************************************************************************************
  2. Copyright (c) 2001 Microsoft Corporation
  3. File Name: IOLists.cpp
  4. Abstract: Declare the CLists class, a double linked list.
  5. Notes:
  6. History: 08/01/2001 Created by Hao Yu (haoyu)
  7. ************************************************************************************************/
  8. #ifndef __POP3_IOLIST__
  9. #define __POP3_IOLIST__
  10. #include <IOContext.h>
  11. class CIOList
  12. {
  13. private:
  14. LIST_ENTRY m_ListHead;
  15. PLIST_ENTRY m_pCursor;
  16. DWORD m_dwListCount;
  17. CRITICAL_SECTION m_csListGuard;
  18. public:
  19. CIOList();
  20. ~CIOList();
  21. void AppendToList(PLIST_ENTRY pListEntry);
  22. DWORD RemoveFromList(PLIST_ENTRY pListEntry);
  23. DWORD CheckTimeOut(DWORD dwTimeOutInterval, BOOL *pbIsAnyOneTimedOut=NULL);
  24. void Cleanup();
  25. };
  26. #endif //__POP3_IOLIST__