Main Page | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | File Members

ThreadFork Class Reference

#include <threadfork.h>

List of all members.

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

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

Definition at line 50 of file threadfork.C.

References run().

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, command_line, filedes, fileno(), path, pid, pipe_stdin, start_lock, stdin_fd, and total_arguments.

Referenced by entrypoint().

void ThreadFork::start_command char *  command_line,
int  pipe_stdin
 

Definition at line 56 of file threadfork.C.

References stdin_fd.

Referenced by main().


Member Data Documentation

char** ThreadFork::arguments [private]
 

Definition at line 27 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::filedes[2] [private]
 

Definition at line 24 of file threadfork.h.

Referenced by run().

char ThreadFork::path[BCTEXTLEN] [private]
 

Definition at line 28 of file threadfork.h.

Referenced by run().

int ThreadFork::pid [private]
 

Definition at line 25 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().

pthread_mutex_t ThreadFork::start_lock [private]
 

Definition at line 31 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_t ThreadFork::tid [private]
 

Definition at line 26 of file threadfork.h.

Referenced by ThreadFork().

int ThreadFork::total_arguments [private]
 

Definition at line 29 of file threadfork.h.

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


The documentation for this class was generated from the following files:
Generated on Sun Jan 8 13:39:26 2006 for Cinelerra-svn by  doxygen 1.4.4