X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fsupport%2Fforkedcallqueue.h;h=5d33034dc63b26e78bb54fd0aea38bfcaa5e1503;hb=005545f28100fd30afa22313d6e3b1b67aa9a857;hp=817d7bb8731e963fdb3f91e2a87cf5e19ed64d99;hpb=3ac369b71c310df991444de93d1bd3e5846057d5;p=lyx.git diff --git a/src/support/forkedcallqueue.h b/src/support/forkedcallqueue.h index 817d7bb873..5d33034dc6 100644 --- a/src/support/forkedcallqueue.h +++ b/src/support/forkedcallqueue.h @@ -5,14 +5,14 @@ * Licence details can be found in the file COPYING. * * \author Alfredo Braunstein (based on an idea from Angus Leeming) - * - * Full author contact details are available in file CREDITS - * - * This class implements a queue of forked processes. In order not to - * hose the system with multiple processes running simultaneously, you can - * request the addition of your process to this queue and it will be + * + * Full author contact details are available in file CREDITS. + * + * This class implements a queue of forked processes. In order not to + * hose the system with multiple processes running simultaneously, you can + * request the addition of your process to this queue and it will be * executed when its turn comes. - * + * */ #ifndef FORKEDCALLQUEUE_H @@ -22,18 +22,21 @@ #include #include -#include "LString.h" + + +namespace lyx { +namespace support { class ForkedCallQueue { public: /// A process in the queue - typedef std::pair Process; + typedef std::pair Process; /** Add a process to the queue. Processes are forked sequentially *  only one is running at a time.          *  Connect to the returned signal and you'll be informed when          *  the process has ended.          */ - Forkedcall::SignalTypePtr add(string const & process); + Forkedcall::SignalTypePtr add(std::string const & process); /// Query whether the queue is running a forked process now. bool running() const; /// Get the and only instance of the class @@ -41,11 +44,11 @@ public: private: - /** this class is a singleton class... use + /** this class is a singleton class... use * ForkedCallQueue::get() instead */ ForkedCallQueue(); - /// in-progress queue + /// in-progress queue std::queue callQueue_; /// bool running_; @@ -59,4 +62,7 @@ private: void callback(pid_t, int); }; +} // namespace support +} // namespace lyx + #endif // FORKEDCALLQUEUE_H