~ubuntu-branches/debian/sid/rkward/sid

« back to all changes in this revision

Viewing changes to rkward/rbackend/rkrbackend.h

  • Committer: Bazaar Package Importer
  • Author(s): Thomas Friedrichsmeier
  • Date: 2011-10-23 15:30:00 UTC
  • mfrom: (1.1.18 upstream)
  • Revision ID: james.westby@ubuntu.com-20111023153000-3gutwgotykvcm67s
Tags: 0.5.7-1
* new upstream release
* provide build-arch and build-indep targets
* include buildflags as instructed by the dpkg developers

Show diffs side-by-side

added added

removed removed

Lines of Context:
183
183
        QList<RCommandProxy*> current_commands_to_cancel;
184
184
        bool too_late_to_interrupt;
185
185
        void interruptCommand (int command_id);
 
186
 
 
187
/** check stdout and stderr for new output (from sub-processes). Since this function is called from both threads, it is protected by a mutex.
 
188
 *  @param forcibly: if false, and the other thread currently has a lock on the mutex, do nothing, and return false.
 
189
 *  @returns: true, if output was actually fetched (or no output was available), false, if the function gave up on a locked mutex. */
 
190
        bool fetchStdoutStderr (bool forcibly);
 
191
/** public for technical reasons */
 
192
        QMutex stdout_stderr_mutex;
186
193
private:
187
194
        void clearPendingInterrupt ();
188
195
protected:
189
196
        RCommandProxy* handleRequest (RBackendRequest *request, bool mayHandleSubstack);
190
197
private:
 
198
        int stdout_stderr_fd;
191
199
/** set up R standard callbacks */
192
200
        void setupCallbacks ();
193
201
/** connect R standard callbacks */