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.

115 lines
1.8 KiB

  1. // copy all the events to the left end of the array
  2. VOID
  3. EventsArray_CopyLeftEnd (
  4. PWAIT_THREAD_ENTRY pwte
  5. );
  6. // Insert the event in the events array and the map array
  7. VOID
  8. EventsArray_InsertEvent (
  9. PWT_EVENT_ENTRY pee,
  10. PWAIT_THREAD_ENTRY pwte,
  11. INT iIndex
  12. );
  13. // copy dwCount events from the srcIndex to dstnIndex (no overlap)
  14. VOID
  15. EventsArray_Move (
  16. IN PWAIT_THREAD_ENTRY pwte,
  17. IN DWORD dwDstnIndex,
  18. IN DWORD dwSrcIndex,
  19. IN DWORD dwCount
  20. );
  21. // copy dwCount events from the srcIndex to dstnIndex (with overlap)
  22. VOID
  23. EventsArray_MoveOverlap (
  24. IN PWAIT_THREAD_ENTRY pwte,
  25. IN DWORD dwDstnIndex,
  26. IN DWORD dwSrcIndex,
  27. IN DWORD dwCount
  28. );
  29. // called by server to (un)bind event bindings
  30. DWORD
  31. ChangeClientEventBindingAux (
  32. IN BOOL bChangeTypeAdd,
  33. IN PWAIT_THREAD_ENTRY pwte,
  34. IN PWT_WORK_ITEM pwi
  35. );
  36. DWORD
  37. ChangeClientEventsTimersAux (
  38. IN BOOL bChangeTypeAdd,
  39. IN PWAIT_THREAD_ENTRY pwte,
  40. IN PLIST_ENTRY pLEvents,
  41. IN PLIST_ENTRY pLTimers
  42. );
  43. //++called by (De)RegisterWaitEventBinding API
  44. DWORD
  45. ChangeWaitEventBindingAux (
  46. IN BOOL bChangeTypeAdd,
  47. IN PWT_EVENT_BINDING pwiWorkItem
  48. );
  49. VOID
  50. DeleteClientEventComplete (
  51. IN PWT_EVENT_ENTRY pee,
  52. IN PWAIT_THREAD_ENTRY pwte
  53. );
  54. VOID
  55. DeleteFromEventsArray (
  56. IN PWT_EVENT_ENTRY pee,
  57. IN PWAIT_THREAD_ENTRY pwte
  58. );
  59. VOID
  60. DeleteFromEventsList (
  61. IN PWT_EVENT_ENTRY pee,
  62. IN PWAIT_THREAD_ENTRY pwte
  63. );
  64. DWORD
  65. DeInitializeWaitGlobalComplete (
  66. );
  67. DWORD
  68. DispatchWorkItem (
  69. IN PWT_WORK_ITEM pwi
  70. );
  71. INT
  72. GetListLength (
  73. IN PLIST_ENTRY pList
  74. );
  75. //++remove event from the array while keeping it in the list. mark it inactive.
  76. VOID
  77. InactivateEvent (
  78. IN PWT_EVENT_ENTRY pee
  79. );
  80. VOID
  81. PrintEvent (
  82. PWT_EVENT_ENTRY pee,
  83. DWORD level
  84. );
  85. VOID
  86. PrintTimer (
  87. PWT_TIMER_ENTRY pte,
  88. DWORD level
  89. );
  90. VOID
  91. PrintWaitThreadEntry (
  92. PWAIT_THREAD_ENTRY pwte,
  93. DWORD level
  94. );