Source code of Windows XP (NT5)
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.

35 lines
754 B

  1. //+---------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 2000.
  5. //
  6. // File: U H T H R E A D . H
  7. //
  8. // Contents: Threading support code
  9. //
  10. // Notes:
  11. //
  12. // Author: mbend 29 Sep 2000
  13. //
  14. //----------------------------------------------------------------------------
  15. #pragma once
  16. class CWorkItem
  17. {
  18. public:
  19. CWorkItem();
  20. virtual ~CWorkItem();
  21. HRESULT HrStart(BOOL bDeleteOnComplete);
  22. protected:
  23. virtual DWORD DwRun() = 0;
  24. virtual ULONG GetFlags();
  25. private:
  26. CWorkItem(const CWorkItem &);
  27. CWorkItem & operator=(const CWorkItem &);
  28. BOOL m_bDeleteOnComplete;
  29. static DWORD WINAPI DwThreadProc(void * pvParam);
  30. };