]> git.lyx.org Git - lyx.git/blobdiff - src/support/ForkedCalls.h
Make GraphicsConverter threadsafe
[lyx.git] / src / support / ForkedCalls.h
index caeba526e0eaf9a9afe703635fbc12ae651f9259..772939890b4bfa139b576bdf59e2f4493cb6130c 100644 (file)
 #define FORKEDCALLS_H
 
 #include "support/shared_ptr.h"
+#include "support/strfwd.h"
 #include <boost/signal.hpp>
 
 #ifdef HAVE_SYS_TYPES_H
 # include <sys/types.h>
 #endif
 
-#include <string>
-
 namespace lyx {
 namespace support {
 
@@ -150,6 +149,8 @@ private:
 
 class ForkedCall : public ForkedProcess {
 public:
+       ///
+       ForkedCall(std::string const & path = empty_string());
        ///
        virtual shared_ptr<ForkedProcess> clone() const {
                return shared_ptr<ForkedProcess>(new ForkedCall(*this));
@@ -157,7 +158,8 @@ public:
 
        /** Start the child process.
         *
-        *  The command "what" is passed to execvp() for execution.
+        *  The command "what" is passed to execvp() for execution. "$$s" is
+        *  replaced accordingly by commandPrep().
         *
         *  There are two startScript commands available. They differ in that
         *  the second receives a signal that is executed on completion of
@@ -175,6 +177,8 @@ public:
 private:
        ///
        virtual int generateChild();
+       ///
+       std::string cmd_prefix_;
 };