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.

72 lines
1.7 KiB

  1. //+---------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 1992 - 1993.
  5. //
  6. // File: jqueue.hxx
  7. //
  8. // Contents: CJobQueue class definition.
  9. //
  10. // Classes: CJobQueue
  11. //
  12. // Functions: None.
  13. //
  14. // History: 25-Oct-95 MarkBl Created
  15. //
  16. //----------------------------------------------------------------------------
  17. #ifndef __JQUEUE_HXX__
  18. #define __JQUEUE_HXX__
  19. //+---------------------------------------------------------------------------
  20. //
  21. // Class: CJobQueue
  22. //
  23. // Synopsis: Class to maintain a queue of job info objects.
  24. //
  25. // History: 25-Oct-95 MarkBl Created
  26. //
  27. // Notes: None.
  28. //
  29. //----------------------------------------------------------------------------
  30. class CJobQueue : public CQueue
  31. {
  32. public:
  33. CJobQueue(void) {
  34. TRACE3(CJobQueue, CJobQueue);
  35. }
  36. ~CJobQueue();
  37. void AddElement(CRun * pRun) {
  38. schDebugOut((DEB_USER3,
  39. "CJobQueue::AddElement(0x%x) pRun(0x%x)\n",
  40. this,
  41. pRun));
  42. CQueue::AddElement(pRun);
  43. }
  44. CRun * GetFirstElement(void) {
  45. TRACE3(CJobQueue, GetFirstElement);
  46. return((CRun *)CQueue::GetFirstElement());
  47. }
  48. CRun * RemoveElement(void) {
  49. TRACE3(CJobQueue, RemoveElement);
  50. return((CRun *)CQueue::RemoveElement());
  51. }
  52. CRun * RemoveElement(CRun * pRun) {
  53. schDebugOut((DEB_USER3,
  54. "CJobQueue::RemoveElement(0x%x) pRun(0x%x)\n",
  55. this,
  56. pRun));
  57. return((CRun *)CQueue::RemoveElement(pRun));
  58. }
  59. CRun * FindJob(HANDLE hJob);
  60. };
  61. #endif // __JQUEUE_HXX__