ThreadExec Class Reference

#include <threadexec.h>

Inherits Thread.

Collaboration diagram for ThreadExec:

Collaboration graph
[legend]

Public Member Functions

 ThreadExec ()
virtual ~ThreadExec ()
FILE * get_stdin ()
void run ()
void start_command (char *command_line, int pipe_stdin)
virtual void run_program (int argc, char *argv[], int stdin_fd)

Private Attributes

int filedes [2]
char ** arguments
char path [BCTEXTLEN]
int total_arguments
FILE * stdin_fd
Mutexstart_lock
char * command_line
int pipe_stdin

Detailed Description

Definition at line 18 of file threadexec.h.


Constructor & Destructor Documentation

ThreadExec::ThreadExec (  ) 

Definition at line 16 of file threadexec.C.

References arguments, command_line, MAX_ARGS, pipe_stdin, Thread::set_synchronous(), start_lock, stdin_fd, and total_arguments.

Here is the call graph for this function:

ThreadExec::~ThreadExec (  )  [virtual]

Definition at line 28 of file threadexec.C.

References arguments, fclose(), filedes, Thread::join(), pipe_stdin, start_lock, stdin_fd, and total_arguments.

Here is the call graph for this function:


Member Function Documentation

FILE * ThreadExec::get_stdin (  ) 

Definition at line 132 of file threadexec.C.

References stdin_fd.

void ThreadExec::run (  )  [virtual]

Implements Thread.

Definition at line 62 of file threadexec.C.

References arguments, BCTEXTLEN, command_line, filedes, path, pipe_stdin, run_program(), start_lock, stdin_fd, total_arguments, and Mutex::unlock().

Here is the call graph for this function:

void ThreadExec::start_command ( char *  command_line,
int  pipe_stdin 
)

Definition at line 49 of file threadexec.C.

References Mutex::lock(), Thread::start(), start_lock, and Mutex::unlock().

Here is the call graph for this function:

void ThreadExec::run_program ( int  argc,
char *  argv[],
int  stdin_fd 
) [virtual]

Definition at line 139 of file threadexec.C.

Referenced by run().


Field Documentation

int ThreadExec::filedes[2] [private]

Definition at line 31 of file threadexec.h.

Referenced by run(), and ~ThreadExec().

char** ThreadExec::arguments [private]

Definition at line 32 of file threadexec.h.

Referenced by run(), ThreadExec(), and ~ThreadExec().

char ThreadExec::path[BCTEXTLEN] [private]

Definition at line 33 of file threadexec.h.

Referenced by run().

Definition at line 34 of file threadexec.h.

Referenced by run(), ThreadExec(), and ~ThreadExec().

FILE* ThreadExec::stdin_fd [private]

Definition at line 35 of file threadexec.h.

Referenced by get_stdin(), run(), ThreadExec(), and ~ThreadExec().

Definition at line 36 of file threadexec.h.

Referenced by run(), start_command(), ThreadExec(), and ~ThreadExec().

char* ThreadExec::command_line [private]

Definition at line 37 of file threadexec.h.

Referenced by run(), and ThreadExec().

int ThreadExec::pipe_stdin [private]

Definition at line 38 of file threadexec.h.

Referenced by run(), ThreadExec(), and ~ThreadExec().


The documentation for this class was generated from the following files:

Generated on Mon Apr 28 14:45:04 2008 for Cinelerra by  doxygen 1.5.5