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.

98 lines
2.4 KiB

  1. //+---------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 1992 - 1994.
  5. //
  6. // File: afwwork.cxx
  7. //
  8. // Contents: A generic asynchronous work item for use in CI framework.
  9. //
  10. // Classes: CFwAsyncWorkItem
  11. //
  12. // History: 2-26-96 srikants Created
  13. //
  14. //----------------------------------------------------------------------------
  15. #include <pch.cxx>
  16. #pragma hdrstop
  17. #include "afwwork.hxx"
  18. #include "resman.hxx"
  19. #if 0
  20. //
  21. // We have this as a model to write code for the async work item.
  22. //
  23. //+---------------------------------------------------------------------------
  24. //
  25. // Member: CFwEnableUpdates::DoIt
  26. //
  27. // Synopsis: The main processing routine for enabling updates.
  28. //
  29. // Arguments: [pThread] -
  30. //
  31. // History: 12-10-96 srikants Created
  32. //
  33. //----------------------------------------------------------------------------
  34. void CFwEnableUpdates::DoIt( CWorkThread * pThread )
  35. {
  36. // ====================================
  37. {
  38. CLock lock(_mutex);
  39. _fOnWorkQueue = FALSE;
  40. }
  41. // ====================================
  42. // --------------------------------------------------------
  43. AddRef();
  44. ciDebugOut(( DEB_ITRACE,
  45. "CFwEnableUpdates::DoIt(). Enabling Updates in DocStore\n" ));
  46. _pIDocStore->EnableUpdates();
  47. _pIDocStore->Release();
  48. _pIDocStore = 0;
  49. Done();
  50. Release();
  51. // --------------------------------------------------------
  52. }
  53. #endif // 0
  54. //+---------------------------------------------------------------------------
  55. //
  56. // Member: CFwFlushNotify::DoIt
  57. //
  58. // Synopsis: Calls the ProcessFlushNotifies() method on the CCiManager
  59. //
  60. // History: 1-27-97 srikants Created
  61. //
  62. //----------------------------------------------------------------------------
  63. void CFwFlushNotify::DoIt( CWorkThread * pThread )
  64. {
  65. // ====================================
  66. {
  67. CLock lock(_mutex);
  68. _fOnWorkQueue = FALSE;
  69. }
  70. // ====================================
  71. // --------------------------------------------------------
  72. AddRef();
  73. ciDebugOut(( DEB_ITRACE,
  74. "CFwFlushNotify::DoIt(). Giving Flush Notification \n" ));
  75. _resMan.ProcessFlushNotifies();
  76. Done();
  77. Release();
  78. // --------------------------------------------------------
  79. }