home *** CD-ROM | disk | FTP | other *** search
/ io Programmo 40 / IOPROG_40.ISO / SOFT / NETFrameworkSDK.exe / comsdk.cab / samples1.exe / Profiler / ProfilerBase.h < prev    next >
Encoding:
C/C++ Source or Header  |  2000-06-23  |  1.9 KB  |  74 lines

  1. /****************************************************************************************
  2.  * Copyright (c) 1999 Microsoft Corporation.  All Rights Reserved.
  3.  *
  4.  * File:
  5.  *  ProfilerBase.h
  6.  *
  7.  * Description:
  8.  *    
  9.  *
  10.  *
  11.  ***************************************************************************************/
  12. #ifndef __PROFILERBASE_H__
  13. #define __PROFILERBASE_H__
  14.  
  15. #include "BasicHdr.h"
  16.  
  17. //
  18. // debug dumper
  19. //
  20. void _DDebug( char *format, ... );
  21.  
  22.  
  23. //
  24. // launch debugger
  25. //
  26. void _LaunchDebugger( const char *szMsg, const char *szFile, int iLine );
  27.  
  28.  
  29. /***************************************************************************************
  30.  ********************                                               ********************
  31.  ********************           BaseException Declaration           ********************
  32.  ********************                                               ********************
  33.  ***************************************************************************************/
  34. class BaseException
  35. {
  36.     public:
  37.         
  38.         BaseException( const char *reason );
  39.         virtual ~BaseException();
  40.         
  41.  
  42.         virtual void ReportFailure();
  43.  
  44.  
  45.     private:
  46.  
  47.         char *m_reason;
  48.         
  49. }; // BaseException
  50.  
  51.  
  52. /***************************************************************************************
  53.  ********************                                               ********************
  54.  ********************            Synchronize Declaration            ********************
  55.  ********************                                               ********************
  56.  ***************************************************************************************/
  57. class Synchronize 
  58. {
  59.     public:
  60.     
  61.         Synchronize( CRITICAL_SECTION &criticalSection );
  62.         ~Synchronize();
  63.         
  64.         
  65.     private:
  66.     
  67.         CRITICAL_SECTION &m_block;
  68.         
  69. }; // Synchronize    
  70.  
  71. #endif // __PROFILERBASE_H__
  72.  
  73. // End of File
  74.