RenderFarmClientThread Class Reference

#include <renderfarmclient.h>

Inherits Thread.

Collaboration diagram for RenderFarmClientThread:

Collaboration graph
[legend]

Public Member Functions

 RenderFarmClientThread (RenderFarmClient *client)
 ~RenderFarmClientThread ()
int send_request_header (int request, int len)
int write_socket (char *data, int len)
int read_socket (char *data, int len)
int write_int64 (int64_t number)
int64_t read_int64 (int *error=0)
void read_string (char *&string)
void abort ()
void lock (char *location)
void unlock ()
void do_tuner (int socket_fd)
void do_packages (int socket_fd)
void get_command (int socket_fd, int *command)
void read_preferences (int socket_fd, Preferences *preferences)
void read_asset (int socket_fd, Asset *asset)
void read_edl (int socket_fd, EDL *edl, Preferences *preferences)
int read_package (int socket_fd, RenderPackage *package)
int send_completion (int socket_fd)
void ping_server ()
void init_client_keepalive ()
void main_loop (int socket_fd)
void run ()

Data Fields

int socket_fd
RenderFarmClientclient
double frames_per_second
Mutexmutex_lock
RenderFarmWatchdogwatchdog
RenderFarmKeepalivekeep_alive
int pid

Detailed Description

Definition at line 46 of file renderfarmclient.h.


Constructor & Destructor Documentation

RenderFarmClientThread::RenderFarmClientThread ( RenderFarmClient client  ) 

Definition at line 209 of file renderfarmclient.C.

References frames_per_second, keep_alive, mutex_lock, Thread::set_synchronous(), and watchdog.

Here is the call graph for this function:

RenderFarmClientThread::~RenderFarmClientThread (  ) 

Definition at line 221 of file renderfarmclient.C.

References keep_alive, mutex_lock, and watchdog.


Member Function Documentation

int RenderFarmClientThread::send_request_header ( int  request,
int  len 
)

int RenderFarmClientThread::write_socket ( char *  data,
int  len 
)

int RenderFarmClientThread::read_socket ( char *  data,
int  len 
)

int RenderFarmClientThread::write_int64 ( int64_t  number  ) 

Definition at line 273 of file renderfarmclient.C.

References write_socket().

Referenced by TunerServer::main_loop().

Here is the call graph for this function:

int64_t RenderFarmClientThread::read_int64 ( int *  error = 0  ) 

Definition at line 287 of file renderfarmclient.C.

References read_socket().

Referenced by get_command(), and TunerServer::main_loop().

Here is the call graph for this function:

void RenderFarmClientThread::read_string ( char *&  string  ) 

Definition at line 312 of file renderfarmclient.C.

References header, and read_socket().

Referenced by read_asset(), read_edl(), read_package(), and read_preferences().

Here is the call graph for this function:

void RenderFarmClientThread::abort (  ) 

Definition at line 340 of file renderfarmclient.C.

References send_completion(), and socket_fd.

Here is the call graph for this function:

void RenderFarmClientThread::lock ( char *  location  ) 

void RenderFarmClientThread::unlock (  ) 

void RenderFarmClientThread::do_tuner ( int  socket_fd  ) 

Definition at line 593 of file renderfarmclient.C.

References TunerServer::main_loop().

Referenced by run().

Here is the call graph for this function:

void RenderFarmClientThread::do_packages ( int  socket_fd  ) 

void RenderFarmClientThread::get_command ( int  socket_fd,
int *  command 
)

Definition at line 357 of file renderfarmclient.C.

References error(), and read_int64().

Referenced by run().

Here is the call graph for this function:

void RenderFarmClientThread::read_preferences ( int  socket_fd,
Preferences preferences 
)

Definition at line 370 of file renderfarmclient.C.

References Preferences::load_defaults(), BC_Hash::load_string(), lock(), read_string(), RENDERFARM_PREFERENCES, send_request_header(), and unlock().

Referenced by do_packages().

Here is the call graph for this function:

void RenderFarmClientThread::read_asset ( int  socket_fd,
Asset asset 
)

Definition at line 390 of file renderfarmclient.C.

References Asset::load_defaults(), BC_Hash::load_string(), lock(), Asset::read(), FileXML::read_from_string(), read_string(), RENDERFARM_ASSET, send_request_header(), and unlock().

Referenced by do_packages().

Here is the call graph for this function:

void RenderFarmClientThread::read_edl ( int  socket_fd,
EDL edl,
Preferences preferences 
)

Definition at line 424 of file renderfarmclient.C.

References client, EDL::load_xml(), lock(), RenderFarmClient::plugindb, FileXML::read_from_string(), read_string(), RENDERFARM_EDL, send_request_header(), and unlock().

Referenced by do_packages().

Here is the call graph for this function:

int RenderFarmClientThread::read_package ( int  socket_fd,
RenderPackage package 
)

int RenderFarmClientThread::send_completion ( int  socket_fd  ) 

Definition at line 512 of file renderfarmclient.C.

References lock(), RENDERFARM_DONE, send_request_header(), and unlock().

Referenced by abort(), and do_packages().

Here is the call graph for this function:

void RenderFarmClientThread::ping_server (  ) 

Definition at line 521 of file renderfarmclient.C.

References lock(), RENDERFARM_KEEPALIVE, send_request_header(), and unlock().

Referenced by RenderFarmKeepalive::run().

Here is the call graph for this function:

void RenderFarmClientThread::init_client_keepalive (  ) 

Definition at line 583 of file renderfarmclient.C.

References keep_alive, Thread::start(), and watchdog.

Referenced by run().

Here is the call graph for this function:

void RenderFarmClientThread::main_loop ( int  socket_fd  ) 

Definition at line 530 of file renderfarmclient.C.

References Thread::start().

Referenced by RenderFarmClient::main_loop().

Here is the call graph for this function:

void RenderFarmClientThread::run (  )  [virtual]

Implements Thread.

Definition at line 537 of file renderfarmclient.C.

References do_packages(), do_tuner(), get_command(), init_client_keepalive(), lock(), pid, RENDERFARM_PACKAGES, RENDERFARM_TUNER, SET_TRACE, socket_fd, and unlock().

Here is the call graph for this function:


Field Documentation

Definition at line 91 of file renderfarmclient.h.

Referenced by abort(), read_socket(), run(), and write_socket().

Definition at line 93 of file renderfarmclient.h.

Referenced by do_packages(), and read_edl().

Definition at line 95 of file renderfarmclient.h.

Referenced by do_packages(), read_package(), and RenderFarmClientThread().

Definition at line 96 of file renderfarmclient.h.

Referenced by lock(), RenderFarmClientThread(), unlock(), and ~RenderFarmClientThread().

Definition at line 100 of file renderfarmclient.h.

Referenced by run(), and RenderFarmWatchdog::run().


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

Generated on Mon Apr 28 14:40:24 2008 for Cinelerra by  doxygen 1.5.5