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.

62 lines
1.4 KiB

  1. //+---------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 1992 - 1994.
  5. //
  6. // File: afwwork.hxx
  7. //
  8. // Contents: A generic asynchronous work item for use in frame work.
  9. //
  10. // Classes: CFwAsyncWorkItem
  11. //
  12. // History: 12-10-96 srikants Adapted from aciwork.hxx
  13. //
  14. //----------------------------------------------------------------------------
  15. #pragma once
  16. #include <workman.hxx>
  17. class CResManager;
  18. //+---------------------------------------------------------------------------
  19. //
  20. // Class: CFwFlushNotify
  21. //
  22. // Purpose: A workitem to notify the framework client that changes
  23. // got flushed.
  24. //
  25. // History: 1-27-97 srikants Created
  26. //
  27. // Notes: Framework should not call back into the client from the
  28. // "Update" call to notify about a flush. So, a work item is
  29. // used.
  30. //
  31. //----------------------------------------------------------------------------
  32. class CFwFlushNotify : public CFwAsyncWorkItem
  33. {
  34. public:
  35. CFwFlushNotify( CWorkManager & workMan,
  36. CResManager & resMan )
  37. : CFwAsyncWorkItem(workMan, TheWorkQueue),
  38. _resMan(resMan)
  39. {
  40. }
  41. //
  42. // virtual methods from PWorkItem
  43. //
  44. void DoIt( CWorkThread * pThread );
  45. private:
  46. CResManager & _resMan;
  47. };