#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 |
Definition at line 11 of file threadfork.h.
| 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.
| FILE * ThreadFork::get_stdin | ( | ) |
| 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().

| void ThreadFork::start_command | ( | char * | command_line, | |
| int | pipe_stdin | |||
| ) |
| void * ThreadFork::entrypoint | ( | void * | ptr | ) | [static] |
Definition at line 50 of file threadfork.C.
References run().

int ThreadFork::filedes[2] [private] |
int ThreadFork::pid [private] |
pthread_t ThreadFork::tid [private] |
char** ThreadFork::arguments [private] |
char ThreadFork::path[BCTEXTLEN] [private] |
int ThreadFork::total_arguments [private] |
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] |
char* ThreadFork::command_line [private] |
int ThreadFork::pipe_stdin [private] |
1.5.5