xerces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bill...@apache.org
Subject cvs commit: xml-xerces/c/src/util PlatformUtils.cpp
Date Wed, 07 Feb 2001 17:46:35 GMT
billsch     01/02/07 09:46:35

  Modified:    c/src/util PlatformUtils.cpp
  Log:
  Rearranged statements in Initialize() so that platformInit() is called
  before an XMLMutex is created.
  
  Revision  Changes    Path
  1.11      +13 -8     xml-xerces/c/src/util/PlatformUtils.cpp
  
  Index: PlatformUtils.cpp
  ===================================================================
  RCS file: /home/cvs/xml-xerces/c/src/util/PlatformUtils.cpp,v
  retrieving revision 1.10
  retrieving revision 1.11
  diff -u -r1.10 -r1.11
  --- PlatformUtils.cpp	2000/07/25 20:55:23	1.10
  +++ PlatformUtils.cpp	2001/02/07 17:46:34	1.11
  @@ -56,6 +56,10 @@
   
   /*
    * $Log: PlatformUtils.cpp,v $
  + * Revision 1.11  2001/02/07 17:46:34  billsch
  + * Rearranged statements in Initialize() so that platformInit() is called
  + * before an XMLMutex is created.
  + *
    * Revision 1.10  2000/07/25 20:55:23  jpolast
    * use gInitFlag as a reference to the number of times
    * Initialized was called.  this way, the terminate routines are
  @@ -148,16 +152,10 @@
       //  like processes that cannot keep up with whether they have initialized
       //  us yet or not.
       //
  -	gInitFlag++;
  +    gInitFlag++;
   
       if (gInitFlag > 1)
  -	    return;
  -	
  -    // Create the local sync mutex
  -    gSyncMutex = new XMLMutex;
  -
  -    // Create the array for saving lazily allocated objects to be deleted at termination
  -    gLazyData= new RefVectorOf<XMLDeleter>(512);
  +      return;
   
       //
       //  Call the platform init method, which is implemented in each of the
  @@ -166,6 +164,12 @@
       //  i.e. only native services.
       //
       platformInit();
  +
  +    // Create the local sync mutex
  +    gSyncMutex = new XMLMutex;
  +
  +    // Create the array for saving lazily allocated objects to be deleted at termination
  +    gLazyData= new RefVectorOf<XMLDeleter>(512);
   
       //
       //  Ask the per-platform code to make the desired transcoding service for
  
  
  

Mime
View raw message