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.

39 lines
829 B

  1. /*===================================================================
  2. Microsoft IIS 5.0 (ASP)
  3. Microsoft Confidential.
  4. Copyright 1998 Microsoft Corporation. All Rights Reserved.
  5. Component: Thread Gate header
  6. File: thrdgate.h
  7. Owner: DmitryR
  8. This file contains the definitons for the Thread Gate
  9. ===================================================================*/
  10. #ifndef THRDGATE_H
  11. #define THRDGATE_H
  12. typedef struct _THREADGATE_CONFIG {
  13. BOOL fEnabled;
  14. DWORD msTimeSlice;
  15. DWORD msSleepDelay;
  16. DWORD nSleepMax;
  17. DWORD nLoadLow;
  18. DWORD nLoadHigh;
  19. DWORD nMinProcessorThreads;
  20. DWORD nMaxProcessorThreads;
  21. } THREADGATE_CONFIG;
  22. HRESULT InitThreadGate(THREADGATE_CONFIG *);
  23. void UnInitThreadGate();
  24. void EnterThreadGate(DWORD msCurrentTickCount);
  25. void LeaveThreadGate();
  26. #endif // THRDGATE_H