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.

102 lines
1.7 KiB

  1. /*++
  2. Copyright (c) 2001-2002 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. //
  14. // Connection Timeout Monitor Functions
  15. //
  16. VOID
  17. UlInitializeTimeoutMonitor(
  18. VOID
  19. );
  20. VOID
  21. UlTerminateTimeoutMonitor(
  22. VOID
  23. );
  24. VOID
  25. UlSetTimeoutMonitorInformation(
  26. IN PHTTP_CONTROL_CHANNEL_TIMEOUT_LIMIT pInfo
  27. );
  28. VOID
  29. UlInitializeConnectionTimerInfo(
  30. PUL_TIMEOUT_INFO_ENTRY pInfo
  31. );
  32. VOID
  33. UlTimeoutRemoveTimerWheelEntry(
  34. PUL_TIMEOUT_INFO_ENTRY pInfo
  35. );
  36. VOID
  37. UlSetPerSiteConnectionTimeoutValue(
  38. PUL_TIMEOUT_INFO_ENTRY pInfo,
  39. LONGLONG TimeoutValue
  40. );
  41. #define UlLockTimeoutInfo(pInfo, pOldIrql) \
  42. UlAcquireSpinLock(&(pInfo)->Lock, pOldIrql)
  43. #define UlUnlockTimeoutInfo(pInfo, OldIrql) \
  44. UlReleaseSpinLock(&(pInfo)->Lock, OldIrql)
  45. VOID
  46. UlSetConnectionTimer(
  47. PUL_TIMEOUT_INFO_ENTRY pInfo,
  48. CONNECTION_TIMEOUT_TIMER Timer
  49. );
  50. VOID
  51. UlResetConnectionTimer(
  52. PUL_TIMEOUT_INFO_ENTRY pInfo,
  53. CONNECTION_TIMEOUT_TIMER Timer
  54. );
  55. VOID
  56. UlSetMinBytesPerSecondTimer(
  57. PUL_TIMEOUT_INFO_ENTRY pInfo,
  58. LONGLONG BytesToSend
  59. );
  60. VOID
  61. UlEvaluateTimerState(
  62. PUL_TIMEOUT_INFO_ENTRY pInfo
  63. );
  64. extern LONGLONG g_TM_ConnectionTimeout;
  65. #define TIMER_OFF_TICK 0xffffffff
  66. #define UlIsConnectionTimerOn(pInfo, Timer) \
  67. (TIMER_OFF_TICK != (pInfo)->Timers[(Timer)])
  68. #define UlIsConnectionTimerOff(pInfo, Timer) \
  69. (TIMER_OFF_TICK == (pInfo)->Timers[(Timer)])
  70. #endif // __TIMEOUTS_H__