home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 7 / 07.iso / c / c221 / 6.ddi / MWHC.006 / R1 < prev    next >
Encoding:
Text File  |  1992-06-07  |  1.7 KB  |  60 lines

  1. #ifndef __RWPROCINIT_H__
  2. #define __RWPROCINIT_H__
  3. pragma push_align_members(64);
  4.  
  5. /*
  6.  * RWProcessInitialize: Starts up an instance manager for this process
  7.  *
  8.  * $Header:   E:/vcs/rw/procinit.h_v   1.1   19 Mar 1992 10:32:34   KEFFER  $
  9.  *
  10.  ****************************************************************************
  11.  *
  12.  * Rogue Wave Software, Inc.
  13.  * P.O. Box 2328
  14.  * Corvallis, OR 97339
  15.  *
  16.  * Copyright (C) 1992. This software is subject to copyright 
  17.  * protection under the laws of the United States and other countries.
  18.  *
  19.  ***************************************************************************
  20.  *
  21.  * This header file should be included in any module/header file that uses
  22.  * the instance manager.  It registers the current process with the process
  23.  * manager.  It is important that it be included BEFORE any possible use
  24.  * of the instance manager.
  25.  *
  26.  ***************************************************************************
  27.  *
  28.  * $Log:   E:/vcs/rw/procinit.h_v  $
  29.  * 
  30.  *    Rev 1.1   19 Mar 1992 10:32:34   KEFFER
  31.  * DLL no longer initializes a process.
  32.  * 
  33.  *    Rev 1.0   11 Mar 1992 14:10:44   KEFFER
  34.  * Initial revision.
  35.  */
  36.  
  37. #ifndef __RWDEFS_H__
  38. #  include "rw/defs.h"        /* Looking for possible definition of RW_MULTI_THREAD */
  39. #endif
  40.  
  41. /*
  42.  * Starting an instance manager is only necessary in a multi-thread
  43.  * situation.  In a DLL, the client is responsible for starting up
  44.  * the instance manager.
  45.  */
  46.  
  47. #if defined(RW_MULTI_THREAD) && !defined(__DLL__)
  48.  
  49. struct RWProcessInitialize {
  50.    RWProcessInitialize();
  51.    ~RWProcessInitialize();
  52. };
  53.  
  54. static RWProcessInitialize rwProcessInit;    // Static constructor insures initialization
  55.  
  56. #endif
  57.  
  58. pragma pop_align_members();
  59. #endif    /* __RWPROCINIT_H__ */
  60.