Back to index

salome-kernel  6.5.0
SALOME_ParallelGlobalProcessVar_i.hxx
Go to the documentation of this file.
00001 // Copyright (C) 2007-2012  CEA/DEN, EDF R&D, OPEN CASCADE
00002 //
00003 // Copyright (C) 2003-2007  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
00004 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
00005 //
00006 // This library is free software; you can redistribute it and/or
00007 // modify it under the terms of the GNU Lesser General Public
00008 // License as published by the Free Software Foundation; either
00009 // version 2.1 of the License.
00010 //
00011 // This library is distributed in the hope that it will be useful,
00012 // but WITHOUT ANY WARRANTY; without even the implied warranty of
00013 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00014 // Lesser General Public License for more details.
00015 //
00016 // You should have received a copy of the GNU Lesser General Public
00017 // License along with this library; if not, write to the Free Software
00018 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
00019 //
00020 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
00021 //
00022 
00023 //  SALOME_ParallelContainer : implementation of container and engine for Parallel Kernel
00024 //  File   : SALOME_ParallelContainer_i.hxx
00025 //  Author : André RIBES, EDF
00026 //
00027 #ifndef _SALOME_PARALLEL_GLOBALPROCESSVAR_I_HXX_
00028 #define _SALOME_PARALLEL_GLOBALPROCESSVAR_I_HXX_
00029 
00030 #ifdef WIN32
00031 # ifdef CONTAINER_EXPORTS
00032 #  define CONTAINER_EXPORT __declspec( dllexport )
00033 # else
00034 #  define CONTAINER_EXPORT __declspec( dllimport )
00035 # endif
00036 #else
00037 # define CONTAINER_EXPORT
00038 #endif
00039 
00040 #include <SALOMEconfig.h>
00041 #include <omnithread.h>
00042 #include <map>
00043 #include <string>
00044 
00045 class CONTAINER_EXPORT ParallelGlobalProcessVar_i
00046 {
00047 public:
00048   ParallelGlobalProcessVar_i();
00049   virtual ~ParallelGlobalProcessVar_i();
00050 
00051 protected:
00052   // Voir commentaire dans le fichier .cxx
00053   static std::map<std::string, int> _cntInstances_map;
00054   static std::map<std::string, void *> _library_map; // library names, loaded
00055   static std::map<std::string, void *> _toRemove_map;// library names to remove
00056   static omni_mutex _numInstanceMutex ; // lib and instance protection
00057 };
00058 
00059 #endif
00060