home *** CD-ROM | disk | FTP | other *** search
- #ifndef __RWPROCINIT_H__
- #define __RWPROCINIT_H__
- pragma push_align_members(64);
-
- /*
- * RWProcessInitialize: Starts up an instance manager for this process
- *
- * $Header: E:/vcs/rw/procinit.h_v 1.1 19 Mar 1992 10:32:34 KEFFER $
- *
- ****************************************************************************
- *
- * Rogue Wave Software, Inc.
- * P.O. Box 2328
- * Corvallis, OR 97339
- *
- * Copyright (C) 1992. This software is subject to copyright
- * protection under the laws of the United States and other countries.
- *
- ***************************************************************************
- *
- * This header file should be included in any module/header file that uses
- * the instance manager. It registers the current process with the process
- * manager. It is important that it be included BEFORE any possible use
- * of the instance manager.
- *
- ***************************************************************************
- *
- * $Log: E:/vcs/rw/procinit.h_v $
- *
- * Rev 1.1 19 Mar 1992 10:32:34 KEFFER
- * DLL no longer initializes a process.
- *
- * Rev 1.0 11 Mar 1992 14:10:44 KEFFER
- * Initial revision.
- */
-
- #ifndef __RWDEFS_H__
- # include "rw/defs.h" /* Looking for possible definition of RW_MULTI_THREAD */
- #endif
-
- /*
- * Starting an instance manager is only necessary in a multi-thread
- * situation. In a DLL, the client is responsible for starting up
- * the instance manager.
- */
-
- #if defined(RW_MULTI_THREAD) && !defined(__DLL__)
-
- struct RWProcessInitialize {
- RWProcessInitialize();
- ~RWProcessInitialize();
- };
-
- static RWProcessInitialize rwProcessInit; // Static constructor insures initialization
-
- #endif
-
- pragma pop_align_members();
- #endif /* __RWPROCINIT_H__ */
-