ThreadFork Class Reference

#include <threadfork.h>


Public Member Functions

 ThreadFork ()
 ~ThreadFork ()
FILE * get_stdin ()
void run ()
void start_command (char *command_line, int pipe_stdin)

Static Public Member Functions

static void * entrypoint (void *ptr)

Private Attributes

int filedes [2]
int pid
pthread_t tid
char ** arguments
char path [BCTEXTLEN]
int total_arguments
FILE * stdin_fd
pthread_mutex_t start_lock
char * command_line
int pipe_stdin


Detailed Description

Definition at line 11 of file threadfork.h.


Constructor & Destructor Documentation

ThreadFork::ThreadFork (  ) 

Definition at line 14 of file threadfork.C.

References arguments, command_line, MAX_ARGS, pid, pipe_stdin, start_lock, stdin_fd, tid, and total_arguments.

ThreadFork::~ThreadFork (  ) 

Definition at line 31 of file threadfork.C.

References arguments, start_lock, stdin_fd, and total_arguments.


Member Function Documentation

FILE * ThreadFork::get_stdin (  ) 

Definition at line 171 of file threadfork.C.

References stdin_fd.

void ThreadFork::run (  ) 

Definition at line 76 of file threadfork.C.

References arguments, BCTEXTLEN, command_line, filedes, fileno(), path, pid, pipe_stdin, start_lock, stdin_fd, and total_arguments.

Referenced by entrypoint().

Here is the call graph for this function:

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

Definition at line 56 of file threadfork.C.

References stdin_fd.

Referenced by main().

void * ThreadFork::entrypoint ( void *  ptr  )  [static]

Definition at line 50 of file threadfork.C.

References run().

Here is the call graph for this function:


Field Documentation

int ThreadFork::filedes[2] [private]

Definition at line 24 of file threadfork.h.

Referenced by run().

int ThreadFork::pid [private]

Definition at line 25 of file threadfork.h.

Referenced by run(), and ThreadFork().

pthread_t ThreadFork::tid [private]

Definition at line 26 of file threadfork.h.

Referenced by ThreadFork().

char** ThreadFork::arguments [private]

Definition at line 27 of file threadfork.h.

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

char ThreadFork::path[BCTEXTLEN] [private]

Definition at line 28 of file threadfork.h.

Referenced by run().

Definition at line 29 of file threadfork.h.

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

FILE* ThreadFork::stdin_fd [private]

Definition at line 30 of file threadfork.h.

Referenced by get_stdin(), run(), start_command(), ThreadFork(), and ~ThreadFork().

pthread_mutex_t ThreadFork::start_lock [private]

Definition at line 31 of file threadfork.h.

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

char* ThreadFork::command_line [private]

Definition at line 32 of file threadfork.h.

Referenced by run(), and ThreadFork().

int ThreadFork::pipe_stdin [private]

Definition at line 33 of file threadfork.h.

Referenced by run(), and ThreadFork().


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

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