]> git.lyx.org Git - lyx.git/blobdiff - src/support/forkedcallqueue.C
split LyXText::rowlist_ into individual Paragraph::rows_ chunks
[lyx.git] / src / support / forkedcallqueue.C
index 378de1af5ce9c52cd9266fea6b00c2e117804290..0e49713da4a627354b0e02a5e161bde3db191921 100644 (file)
@@ -4,10 +4,12 @@
  * 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
  */
 
+#include <config.h>
+
 #include "forkedcallqueue.h"
 
 #include "debug.h"
@@ -18,6 +20,9 @@
 using std::endl;
 using std::queue;
 
+namespace lyx {
+namespace support {
+
 ForkedCallQueue & ForkedCallQueue::get()
 {
        static ForkedCallQueue singleton;
@@ -44,7 +49,7 @@ void ForkedCallQueue::callNext()
        Process pro = callQueue_.front();
        callQueue_.pop();
        // Bind our chain caller
-       pro.second->connect(boost::bind(&ForkedCallQueue::callback, 
+       pro.second->connect(boost::bind(&ForkedCallQueue::callback,
                                         this, _1, _2));
        Forkedcall call;
        // If we fail to fork the process, then emit the signal
@@ -67,7 +72,7 @@ void ForkedCallQueue::callback(pid_t, int)
 ForkedCallQueue::ForkedCallQueue() : running_(false)
 {}
 
-       
+
 void ForkedCallQueue::startCaller()
 {
        lyxerr[Debug::GRAPHICS] << "ForkedCallQueue: waking up" << endl;
@@ -79,7 +84,7 @@ void ForkedCallQueue::startCaller()
 void ForkedCallQueue::stopCaller()
 {
        running_ = false ;
-       lyxerr[Debug::GRAPHICS] << "ForkedCallQueue: I'm going to sleep" 
+       lyxerr[Debug::GRAPHICS] << "ForkedCallQueue: I'm going to sleep"
                                << endl;
 }
 
@@ -88,3 +93,6 @@ bool ForkedCallQueue::running() const
 {
        return running_ ;
 }
+
+} // namespace support
+} // namespace lyx