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.

75 lines
1.5 KiB

  1. /**********************************************************************/
  2. /** Microsoft Windows/NT **/
  3. /** Copyright(c) Microsoft Corp., 1992 **/
  4. /**********************************************************************/
  5. /*
  6. w32sema4.hxx
  7. Class declarations for the WIN32_SEMAPHORE class.
  8. <Multi-Line, more detailed synopsis>
  9. FILE HISTORY:
  10. KeithMo 21-Jan-1992 Created.
  11. */
  12. #ifndef _W32SEMA4_HXX_
  13. #define _W32SEMA4_HXX_
  14. #include "w32sync.hxx"
  15. /*************************************************************************
  16. NAME: WIN32_SEMAPHORE
  17. SYNOPSIS:
  18. INTERFACE: WIN32_SEMAPHORE - Class constructor.
  19. ~WIN32_SEMAPHORE - Class destructor.
  20. PARENT:
  21. USES:
  22. CAVEATS:
  23. NOTES:
  24. HISTORY:
  25. KeithMo 21-Jan-1992 Created.
  26. **************************************************************************/
  27. DLL_CLASS WIN32_SEMAPHORE : public WIN32_SYNC_BASE
  28. {
  29. private:
  30. protected:
  31. public:
  32. //
  33. // Usual constructor/destructor goodies.
  34. //
  35. WIN32_SEMAPHORE( const TCHAR * pszName = NULL,
  36. LONG cInitial = 1L,
  37. LONG cMaximum = 1L );
  38. ~WIN32_SEMAPHORE( VOID );
  39. //
  40. // Release the semaphore.
  41. //
  42. APIERR Release( LONG ReleaseCount = 1,
  43. LONG * pPreviousCount = NULL );
  44. }; // class WIN32_SEMAPHORE
  45. #endif // _W32SEMA4_HXX_