dbertoni    00/12/07 09:04:04

  Modified:    c/samples/ThreadSafe ThreadSafe.cpp
  Log:
  Added call to parser liaison to request thread-safe documents.
  
  Revision  Changes    Path
  1.10      +6 -2      xml-xalan/c/samples/ThreadSafe/ThreadSafe.cpp
  
  Index: ThreadSafe.cpp
  ===================================================================
  RCS file: /home/cvs/xml-xalan/c/samples/ThreadSafe/ThreadSafe.cpp,v
  retrieving revision 1.9
  retrieving revision 1.10
  diff -u -r1.9 -r1.10
  --- ThreadSafe.cpp    2000/11/28 17:23:36     1.9
  +++ ThreadSafe.cpp    2000/12/07 17:04:04     1.10
  @@ -77,6 +77,10 @@
        XObjectFactoryDefault                   theXObjectFactory;
        XPathFactoryDefault                             theXPathFactory;
   
  +     // The default is that documents are not thread-safe.  Set this to
  +     // true so they are.
  +     theParserLiaison.setThreadSafe(true);
  +
        // Create a processor...and output the start message.
        XSLTEngineImpl  theProcessor(
                                        theParserLiaison,
  @@ -99,8 +103,8 @@
                                                theXPathSupport,
                                                theXObjectFactory);
   
  -  // Set the XSLTInputSource...
  -  XSLTInputSource xslIn(glbDocSource);
  +     // Set the XSLTInputSource...
  +     XSLTInputSource xslIn(glbDocSource);
   
        // Generate the output file name for this thread.
       ostrstream theFormatterOut;
  
  
  

Reply via email to