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.

102 lines
1.5 KiB

  1. /*++
  2. Copyright (c) 2001-2001 Microsoft Corporation
  3. Module Name:
  4. timeouts.h
  5. Abstract:
  6. Declaration for timeout monitoring primitives.
  7. Author:
  8. Eric Stenson (EricSten) 24-Mar-2001
  9. Revision History:
  10. --*/
  11. #ifndef __TIMEOUTS_H__
  12. #define __TIMEOUTS_H__
  13. #ifdef __cplusplus
  14. extern "C" {
  15. #endif
  16. //
  17. // Connection Timeout Monitor Functions
  18. //
  19. VOID
  20. UlInitializeTimeoutMonitor(
  21. VOID
  22. );
  23. VOID
  24. UlTerminateTimeoutMonitor(
  25. VOID
  26. );
  27. VOID
  28. UlSetTimeoutMonitorInformation(
  29. IN PHTTP_CONTROL_CHANNEL_TIMEOUT_LIMIT pInfo
  30. );
  31. VOID
  32. UlInitializeConnectionTimerInfo(
  33. PUL_TIMEOUT_INFO_ENTRY pInfo
  34. );
  35. VOID
  36. UlTimeoutRemoveTimerWheelEntry(
  37. PUL_TIMEOUT_INFO_ENTRY pInfo
  38. );
  39. VOID
  40. UlSetPerSiteConnectionTimeoutValue(
  41. PUL_TIMEOUT_INFO_ENTRY pInfo,
  42. LONGLONG TimeoutValue
  43. );
  44. #define UlLockTimeoutInfo(pInfo, pOldIrql) \
  45. UlAcquireSpinLock(&(pInfo)->Lock, pOldIrql)
  46. #define UlUnlockTimeoutInfo(pInfo, OldIrql) \
  47. UlReleaseSpinLock(&(pInfo)->Lock, OldIrql)
  48. VOID
  49. UlSetConnectionTimer(
  50. PUL_TIMEOUT_INFO_ENTRY pInfo,
  51. CONNECTION_TIMEOUT_TIMER Timer
  52. );
  53. VOID
  54. UlResetConnectionTimer(
  55. PUL_TIMEOUT_INFO_ENTRY pInfo,
  56. CONNECTION_TIMEOUT_TIMER Timer
  57. );
  58. VOID
  59. UlSetMinKBSecTimer(
  60. PUL_TIMEOUT_INFO_ENTRY pInfo,
  61. LONGLONG BytesToSend
  62. );
  63. VOID
  64. UlResetAllConnectionTimers(
  65. PUL_TIMEOUT_INFO_ENTRY pInfo
  66. );
  67. VOID
  68. UlEvaluateTimerState(
  69. PUL_TIMEOUT_INFO_ENTRY pInfo
  70. );
  71. #ifdef __cplusplus
  72. }; // extern "C"
  73. #endif
  74. #endif // __TIMEOUTS_H__