RenderFarmServerThread Class Reference

#include <renderfarm.h>

Inherits Thread.

Collaboration diagram for RenderFarmServerThread:

Collaboration graph
[legend]

Public Member Functions

 RenderFarmServerThread (ArrayList< PluginServer * > *plugindb, RenderFarmServer *server, int number)
 ~RenderFarmServerThread ()
int write_int64 (int64_t value)
int64_t read_int64 (int *error)
int write_string (char *string)
int read_socket (char *data, int len)
int write_socket (char *data, int len)
int start_loop ()
void send_preferences ()
void send_asset ()
void send_edl ()
void send_package (unsigned char *buffer)
void set_progress (unsigned char *buffer)
int set_video_map (unsigned char *buffer)
void set_result (unsigned char *buffer)
void get_result ()
void reallocate_buffer (int size)
void run ()

Static Public Member Functions

static int open_client (char *hostname, int port)

Data Fields

ArrayList< PluginServer * > * plugindb
RenderFarmServerserver
RenderFarmWatchdogwatchdog
int socket_fd
int number
double frames_per_second
Assetdefault_asset
unsigned char * buffer
int64_t buffer_allocated
char * datagram

Detailed Description

Definition at line 189 of file renderfarm.h.


Constructor & Destructor Documentation

RenderFarmServerThread::RenderFarmServerThread ( ArrayList< PluginServer * > *  plugindb,
RenderFarmServer server,
int  number 
)

Definition at line 108 of file renderfarm.C.

References buffer, datagram, frames_per_second, Thread::set_synchronous(), socket_fd, and watchdog.

Here is the call graph for this function:

RenderFarmServerThread::~RenderFarmServerThread (  ) 

Definition at line 126 of file renderfarm.C.

References buffer, datagram, Thread::join(), socket_fd, and watchdog.

Here is the call graph for this function:


Member Function Documentation

int RenderFarmServerThread::write_int64 ( int64_t  value  ) 

Definition at line 284 of file renderfarm.C.

References write_socket().

Referenced by run().

Here is the call graph for this function:

int64_t RenderFarmServerThread::read_int64 ( int *  error  ) 

Definition at line 258 of file renderfarm.C.

References read_socket().

Here is the call graph for this function:

int RenderFarmServerThread::write_string ( char *  string  ) 

Definition at line 461 of file renderfarm.C.

References datagram, memcpy, STORE_INT32, and write_socket().

Referenced by send_asset(), send_edl(), and send_preferences().

Here is the call graph for this function:

int RenderFarmServerThread::open_client ( char *  hostname,
int  port 
) [static]

Definition at line 139 of file renderfarm.C.

References _, ATTEMPT_DELAY, fprintf, NULL, and socket_fd.

Referenced by start_loop(), and DeviceDVBInput::try_tuner().

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

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

int RenderFarmServerThread::start_loop (  ) 

void RenderFarmServerThread::send_preferences (  ) 

Definition at line 478 of file renderfarm.C.

References RenderFarmServer::preferences, Preferences::save_defaults(), BC_Hash::save_string(), server, and write_string().

Referenced by run().

Here is the call graph for this function:

void RenderFarmServerThread::send_asset (  ) 

Definition at line 490 of file renderfarm.C.

References RenderFarmServer::default_asset, Asset::save_defaults(), BC_Hash::save_string(), server, FileXML::string, FileXML::terminate_string(), Asset::write(), and write_string().

Referenced by run().

Here is the call graph for this function:

void RenderFarmServerThread::send_edl (  ) 

Definition at line 517 of file renderfarm.C.

References RenderFarmServer::edl, plugindb, EDL::save_xml(), server, FileXML::string, FileXML::terminate_string(), and write_string().

Referenced by run().

Here is the call graph for this function:

void RenderFarmServerThread::send_package ( unsigned char *  buffer  ) 

Definition at line 535 of file renderfarm.C.

References BCTEXTLEN, RenderFarmServer::brender, datagram, frames_per_second, server, STORE_INT32, and write_socket().

Referenced by run().

Here is the call graph for this function:

void RenderFarmServerThread::set_progress ( unsigned char *  buffer  ) 

Definition at line 588 of file renderfarm.C.

References Mutex::lock(), server, RenderFarmServer::total_return, RenderFarmServer::total_return_lock, and Mutex::unlock().

Referenced by run().

Here is the call graph for this function:

int RenderFarmServerThread::set_video_map ( unsigned char *  buffer  ) 

Definition at line 598 of file renderfarm.C.

References RenderFarmServer::brender, server, BRender::set_video_map(), and write_socket().

Referenced by run().

Here is the call graph for this function:

void RenderFarmServerThread::set_result ( unsigned char *  buffer  ) 

Definition at line 619 of file renderfarm.C.

References RenderFarmServer::result_return, and server.

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

void RenderFarmServerThread::get_result (  ) 

Definition at line 627 of file renderfarm.C.

References RenderFarmServer::result_return, server, and write_socket().

Referenced by run().

Here is the call graph for this function:

void RenderFarmServerThread::reallocate_buffer ( int  size  ) 

Definition at line 330 of file renderfarm.C.

References buffer, and buffer_allocated.

Referenced by RenderFarmFSServer::handle_request(), and run().

void RenderFarmServerThread::run (  )  [virtual]


Field Documentation

Definition at line 225 of file renderfarm.h.

Referenced by send_edl().

Definition at line 229 of file renderfarm.h.

Referenced by start_loop().

Definition at line 231 of file renderfarm.h.

Referenced by RenderFarmServerThread(), and send_package().

Definition at line 233 of file renderfarm.h.

Definition at line 237 of file renderfarm.h.

Referenced by reallocate_buffer(), and run().


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

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