home *** CD-ROM | disk | FTP | other *** search
/ Power GUI Programming with VisualAge C++ / powergui.iso / trialva / ibmcppw / include / icritsec.hpp < prev    next >
Encoding:
C/C++ Source or Header  |  1996-02-22  |  2.0 KB  |  53 lines

  1. #ifndef _ICRITSEC_
  2. #define _ICRITSEC_
  3. /*******************************************************************************
  4. * FILE NAME: icritsec.hpp                                                      *
  5. *                                                                              *
  6. * DESCRIPTION:                                                                 *
  7. *   Declaration of the classes:                                                *
  8. *     ICritSec                                                                 *
  9. *                                                                              *
  10. * COPYRIGHT:                                                                   *
  11. *   IBM Open Class Library                                                     *
  12. *   (C) Copyright International Business Machines Corporation 1992, 1996       *
  13. *   Licensed Material - Program-Property of IBM - All Rights Reserved.         *
  14. *   US Government Users Restricted Rights - Use, duplication, or disclosure    *
  15. *   restricted by GSA ADP Schedule Contract with IBM Corp.                     *
  16. *                                                                              *
  17. *******************************************************************************/
  18. #include <ibase.hpp>
  19.  
  20. class ICritSecData;
  21.  
  22. #pragma pack(4)
  23.  
  24. class ICritSec : public IBase {
  25. typedef IBase
  26.   Inherited;
  27. public:
  28. /*------------------------------- Constructors -------------------------------*/
  29.   ICritSec ( );
  30.  ~ICritSec ( );
  31.  
  32. /*------------------------------- Diagnostics --------------------------------*/
  33. static unsigned long
  34.   count    ( );
  35.  
  36. private:
  37. /*------------------------------ Hidden Members ------------------------------*/
  38.   ICritSec   ( const ICritSec& section );
  39. ICritSec
  40.  &operator=  ( const ICritSec& section );
  41.  
  42. /*--------------------------------- Private ----------------------------------*/
  43. static unsigned long
  44.   fgCount;
  45. ICritSecData
  46.  *fCritSecData;
  47.  
  48. }; // ICritSec
  49.  
  50. #pragma pack()
  51.  
  52. #endif /* _ICRITSEC_ */
  53.