Skip to content
Snippets Groups Projects
Commit fc2420c2 authored by Neil Graham's avatar Neil Graham
Browse files

fix bug in synchronized addOrFind method; thanks to Khaled for pointing this out

git-svn-id: https://svn.apache.org/repos/asf/xerces/c/trunk@175266 13f79535-47bb-0310-9956-ffa450edef68
parent e30d752a
No related branches found
No related tags found
No related merge requests found
......@@ -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 @@ unsigned int XMLSynchronizedStringPool::addOrFind(const XMLCh* const newString)
{
XMLMutexLock lockInit(&fMutex);
id = XMLStringPool::addOrFind(newString);
return id;
return id+fConstPool->getStringCount();
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment