peiyongz    2002/11/15 13:58:04

  Modified:    c/src/xercesc/validators/schema XSDErrorReporter.cpp
  Log:
  Leave thread safety issue to message loader
  
  Revision  Changes    Path
  1.5       +5 -12     xml-xerces/c/src/xercesc/validators/schema/XSDErrorReporter.cpp
  
  Index: XSDErrorReporter.cpp
  ===================================================================
  RCS file: /home/cvs/xml-xerces/c/src/xercesc/validators/schema/XSDErrorReporter.cpp,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- XSDErrorReporter.cpp      4 Nov 2002 14:49:42 -0000       1.4
  +++ XSDErrorReporter.cpp      15 Nov 2002 21:58:04 -0000      1.5
  @@ -56,6 +56,9 @@
   
   /**
     * $Log$
  +  * Revision 1.5  2002/11/15 21:58:04  peiyongz
  +  * Leave thread safety issue to message loader
  +  *
     * Revision 1.4  2002/11/04 14:49:42  tng
     * C++ Namespace Support.
     *
  @@ -211,14 +214,9 @@
           msgLoader = gValidMsgLoader;
       }
   
  -    // Lock the mutex and load the text
  +    if (!msgLoader->loadMsg(toEmit, errText, msgSize))
       {
  -        XMLMutexLock lockInit(&gErrMsgMutex());
  -
  -        if (!msgLoader->loadMsg(toEmit, errText, msgSize))
  -        {
                   // <TBD> Should probably load a default message here
  -        }
       }
   
       if (fErrorReporter)
  @@ -258,14 +256,9 @@
           msgLoader = gValidMsgLoader;
       }
   
  -    // Lock the mutex and load the text
  +    if (!msgLoader->loadMsg(toEmit, errText, maxChars, text1, text2, text3, text4))
       {
  -        XMLMutexLock lockInit(&gErrMsgMutex());
  -
  -        if (!msgLoader->loadMsg(toEmit, errText, maxChars, text1, text2, text3, 
text4))
  -        {
                   // <TBD> Should probably load a default message here
  -        }
       }
   
       if (fErrorReporter)
  
  
  

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

Reply via email to