• Skip to content
  • Skip to link menu
Trinity API Reference
  • Trinity API Reference
  • tdecore
 

tdecore

Public Member Functions | Static Public Member Functions | Static Public Attributes | Friends | List of all members
TDEProcessController Class Reference

#include <tdeprocctrl.h>

Inherits TQObject.

Public Member Functions

bool waitForProcessExit (int timeout)
 
void unscheduleCheck ()
 
void rescheduleCheck ()
 
int notifierFd () const
 
void addTDEProcess (TDEProcess *)
 
void removeTDEProcess (TDEProcess *)
 
void addProcess (int pid)
 

Static Public Member Functions

static void ref ()
 
static void deref ()
 
static void theSigCHLDHandler (int signal)
 

Static Public Attributes

static TDEProcessController * theTDEProcessController
 

Friends

class I_just_love_gcc
 

Detailed Description

Used internally by TDEProcess.

Definition at line 39 of file tdeprocctrl.h.

Member Function Documentation

◆ addProcess()

void TDEProcessController::addProcess ( int  pid)

Definition at line 271 of file tdeprocctrl.cpp.

◆ addTDEProcess()

void TDEProcessController::addTDEProcess ( TDEProcess *  p)

Definition at line 261 of file tdeprocctrl.cpp.

◆ deref()

void TDEProcessController::deref ( )
static

Destroy the instance if one exists and it is not referenced any more.

Called by TDEApplication::~TDEApplication()

Definition at line 48 of file tdeprocctrl.cpp.

◆ notifierFd()

int TDEProcessController::notifierFd ( ) const

Definition at line 165 of file tdeprocctrl.cpp.

◆ ref()

void TDEProcessController::ref ( )
static

Create an instance if none exists yet.

Called by TDEApplication::TDEApplication()

Definition at line 39 of file tdeprocctrl.cpp.

◆ removeTDEProcess()

void TDEProcessController::removeTDEProcess ( TDEProcess *  p)

Definition at line 266 of file tdeprocctrl.cpp.

◆ rescheduleCheck()

void TDEProcessController::rescheduleCheck ( )

This function must be called at some point after calling unscheduleCheck().

Since
3.2

Definition at line 178 of file tdeprocctrl.cpp.

◆ theSigCHLDHandler()

void TDEProcessController::theSigCHLDHandler ( int  signal)
static

Automatically called upon SIGCHLD.

Never call it directly. If your application (or some library it uses) redirects SIGCHLD, the new signal handler (and only it) should call the old handler returned by sigaction().

Definition at line 147 of file tdeprocctrl.cpp.

◆ unscheduleCheck()

void TDEProcessController::unscheduleCheck ( )

Call this function to defer processing of the data that became available on notifierFd().

Since
3.2

Definition at line 170 of file tdeprocctrl.cpp.

◆ waitForProcessExit()

bool TDEProcessController::waitForProcessExit ( int  timeout)

Wait for any process to exit and handle their exit without starting an event loop.

This function may cause TDEProcess to emit any of its signals.

Parameters
timeoutthe timeout in seconds. -1 means no timeout.
Returns
true if a process exited, false if no process exited within timeout seconds.
Since
3.1

Definition at line 223 of file tdeprocctrl.cpp.

Friends And Related Function Documentation

◆ I_just_love_gcc

friend class I_just_love_gcc
friend

Definition at line 123 of file tdeprocctrl.h.

Member Data Documentation

◆ theTDEProcessController

TDEProcessController * TDEProcessController::theTDEProcessController
static

Only a single instance of this class is allowed at a time, and this static variable is used to track the one instance.

Definition at line 60 of file tdeprocctrl.h.


The documentation for this class was generated from the following files:
  • tdeprocctrl.h
  • tdeprocctrl.cpp

tdecore

Skip menu "tdecore"
  • Main Page
  • Modules
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

tdecore

Skip menu "tdecore"
  • arts
  • dcop
  • dnssd
  • interfaces
  •   kspeech
  •     interface
  •     library
  •   tdetexteditor
  • kate
  • kded
  • kdoctools
  • kimgio
  • kjs
  • libtdemid
  • libtdescreensaver
  • tdeabc
  • tdecmshell
  • tdecore
  • tdefx
  • tdehtml
  • tdeinit
  • tdeio
  •   bookmarks
  •   httpfilter
  •   kpasswdserver
  •   kssl
  •   tdefile
  •   tdeio
  •   tdeioexec
  • tdeioslave
  •   http
  • tdemdi
  •   tdemdi
  • tdenewstuff
  • tdeparts
  • tdeprint
  • tderandr
  • tderesources
  • tdespell2
  • tdesu
  • tdeui
  • tdeunittest
  • tdeutils
  • tdewallet
Generated for tdecore by doxygen 1.9.4
This website is maintained by Timothy Pearson.