neilg       2003/10/09 08:35:13

  Modified:    c/src/xercesc/util SynchronizedStringPool.cpp
  Log:
  fix bug in synchronized addOrFind method; thanks to Khaled for pointing this out
  
  Revision  Changes    Path
  1.2       +5 -2      xml-xerces/c/src/xercesc/util/SynchronizedStringPool.cpp
  
  Index: SynchronizedStringPool.cpp
  ===================================================================
  RCS file: /home/cvs/xml-xerces/c/src/xercesc/util/SynchronizedStringPool.cpp,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- SynchronizedStringPool.cpp        9 Oct 2003 13:51:16 -0000       1.1
  +++ SynchronizedStringPool.cpp        9 Oct 2003 15:35:13 -0000       1.2
  @@ -56,6 +56,9 @@
   
   /*
    * $Log$
  + * Revision 1.2  2003/10/09 15:35:13  neilg
  + * fix bug in synchronized addOrFind method; thanks to Khaled for pointing this out
  + *
    * Revision 1.1  2003/10/09 13:51:16  neilg
    * implementation of a StringPool implementation that permits thread-safe updates.  
This can now be used by a grammar pool that is locked so that scanners have somehwere 
to store information about newly-encountered URIs
    *
  @@ -100,7 +103,7 @@
       {
           XMLMutexLock lockInit(&fMutex);
           id = XMLStringPool::addOrFind(newString);
  -        return id;
  +        return id+fConstPool->getStringCount();
       }
   }
   
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to