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.

70 lines
2.0 KiB

  1. /*==========================================================================
  2. *
  3. * Copyright (C) 2000-2002 Microsoft Corporation. All Rights Reserved.
  4. *
  5. * File: Pools.h
  6. * Content: Pool functions
  7. *
  8. * History:
  9. * Date By Reason
  10. * ==== == ======
  11. * 01/20/2000 jtk Derived from utils.h
  12. ***************************************************************************/
  13. #ifndef __POOLS_H__
  14. #define __POOLS_H__
  15. // Pools
  16. #ifndef DPNBUILD_ONLYONEADAPTER
  17. extern CFixedPool g_AdapterEntryPool;
  18. #endif // ! DPNBUILD_ONLYONEADAPTER
  19. extern CFixedPool g_CommandDataPool;
  20. extern CFixedPool g_SocketAddressPool;
  21. extern CFixedPool g_EndpointPool;
  22. extern CFixedPool g_EndpointCommandParametersPool;
  23. extern CFixedPool g_SocketPortPool;
  24. extern CFixedPool g_ThreadPoolPool;
  25. extern CFixedPool g_ReadIODataPool;
  26. extern CFixedPool g_TimerEntryPool;
  27. extern CFixedPool g_SocketDataPool;
  28. #ifndef DPNBUILD_ONLYONETHREAD
  29. extern CFixedPool g_BlockingJobPool;
  30. #endif // ! DPNBUILD_ONLYONETHREAD
  31. //**********************************************************************
  32. // Structure definitions
  33. //**********************************************************************
  34. //
  35. // forward structure references
  36. //
  37. #ifndef DPNBUILD_ONLYONEADAPTER
  38. class CAdapterEntry;
  39. #endif // ! DPNBUILD_ONLYONEADAPTER
  40. class CCommandData;
  41. class CSocketAddress;
  42. class CEndpoint;
  43. class CSocketPort;
  44. class CSocketData;
  45. class CSPData;
  46. class CThreadPool;
  47. class CReadIOData;
  48. typedef struct _ENDPOINT_COMMAND_PARAMETERS ENDPOINT_COMMAND_PARAMETERS;
  49. typedef struct _READ_IO_DATA_POOL_CONTEXT READ_IO_DATA_POOL_CONTEXT;
  50. //**********************************************************************
  51. // Variable definitions
  52. //**********************************************************************
  53. //**********************************************************************
  54. // Function prototypes
  55. //**********************************************************************
  56. BOOL InitializePools( void );
  57. void DeinitializePools( void );
  58. #endif // __POOLS_H__