dbertoni    00/12/07 09:03:55

  Modified:    c/Tests/Threads ThreadTest.cpp
  Log:
  Added call to parser liaison to request thread-safe documents.
  
  Revision  Changes    Path
  1.3       +5 -0      xml-xalan/c/Tests/Threads/ThreadTest.cpp
  
  Index: ThreadTest.cpp
  ===================================================================
  RCS file: /home/cvs/xml-xalan/c/Tests/Threads/ThreadTest.cpp,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- ThreadTest.cpp    2000/11/20 20:38:26     1.2
  +++ ThreadTest.cpp    2000/12/07 17:03:55     1.3
  @@ -63,6 +63,11 @@
        // Create the support objects that are necessary for running the 
processor...
        XercesDOMSupport                                theDOMSupport;
        XercesParserLiaison                             
theParserLiaison(theDOMSupport);
  +
  +     // The default is that documents are not thread-safe.  Set this to
  +     // true so they are.
  +     theParserLiaison.setThreadSafe(true);
  +
        XPathSupportDefault                             
theXPathSupport(theDOMSupport);
        XSLTProcessorEnvSupportDefault  theXSLTProcessorEnvSupport;
        XObjectFactoryDefault                   theXObjectFactory;
  
  
  

Reply via email to