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

LoadServer Class Reference

#include <loadbalance.h>

Inheritance diagram for LoadServer:

BlendEngine FadeEngine FrameWriter MaskEngine ScaleEngine ScaleTranslateEngine TranslateEngine List of all members.

Public Member Functions

 LoadServer (int total_clients, int total_packages)
virtual ~LoadServer ()
virtual void init_packages ()
virtual LoadClientnew_client ()
virtual LoadPackagenew_package ()
void process_packages ()
int get_total_packages ()
int get_total_clients ()
LoadPackageget_package (int number)
LoadClientget_client (int number)
void set_package_count (int total_packages)
void delete_clients ()
void create_clients ()
void delete_packages ()
void create_packages ()

Public Attributes

int current_package
LoadPackage ** packages
int total_packages
LoadClient ** clients
int total_clients
Mutex * client_lock

Friends

class LoadClient

Detailed Description

Definition at line 54 of file loadbalance.h.


Constructor & Destructor Documentation

LoadServer::LoadServer int  total_clients,
int  total_packages
 

Definition at line 107 of file loadbalance.C.

References client_lock, clients, current_package, and packages.

LoadServer::~LoadServer  )  [virtual]
 

Definition at line 119 of file loadbalance.C.

References client_lock, delete_clients(), and delete_packages().


Member Function Documentation

void LoadServer::create_clients  ) 
 

Definition at line 156 of file loadbalance.C.

References clients, new_client(), LoadClient::server, and total_clients.

Referenced by process_packages().

void LoadServer::create_packages  ) 
 

Definition at line 170 of file loadbalance.C.

References new_package(), packages, and total_packages.

Referenced by process_packages(), and set_package_count().

void LoadServer::delete_clients  ) 
 

Definition at line 126 of file loadbalance.C.

References clients, and total_clients.

Referenced by ~LoadServer().

void LoadServer::delete_packages  ) 
 

Reimplemented in MaskEngine.

Definition at line 137 of file loadbalance.C.

References packages, and total_packages.

Referenced by set_package_count(), and ~LoadServer().

LoadClient * LoadServer::get_client int  number  ) 
 

Definition at line 185 of file loadbalance.C.

References clients.

Referenced by FileList::get_unit().

LoadPackage * LoadServer::get_package int  number  ) 
 

Definition at line 180 of file loadbalance.C.

References packages.

int LoadServer::get_total_clients  ) 
 

Definition at line 195 of file loadbalance.C.

References total_clients.

Referenced by FileList::get_units().

int LoadServer::get_total_packages  ) 
 

Definition at line 190 of file loadbalance.C.

References total_packages.

Referenced by MaskEngine::init_packages(), FrameWriter::init_packages(), and MaskUnit::process_package().

virtual void LoadServer::init_packages  )  [inline, virtual]
 

Reimplemented in FadeEngine, FrameWriter, MaskEngine, ScaleEngine, TranslateEngine, ScaleTranslateEngine, and BlendEngine.

Definition at line 63 of file loadbalance.h.

Referenced by process_packages().

virtual LoadClient* LoadServer::new_client  )  [inline, virtual]
 

Reimplemented in FadeEngine, FrameWriter, MaskEngine, ScaleEngine, TranslateEngine, ScaleTranslateEngine, and BlendEngine.

Definition at line 64 of file loadbalance.h.

Referenced by create_clients().

virtual LoadPackage* LoadServer::new_package  )  [inline, virtual]
 

Reimplemented in FadeEngine, FrameWriter, MaskEngine, ScaleEngine, TranslateEngine, ScaleTranslateEngine, and BlendEngine.

Definition at line 65 of file loadbalance.h.

Referenced by create_packages().

void LoadServer::process_packages  ) 
 

Definition at line 200 of file loadbalance.C.

References clients, LoadClient::completion_lock, LoadPackage::completion_lock, create_clients(), create_packages(), current_package, init_packages(), LoadClient::input_lock, packages, total_clients, and total_packages.

Referenced by FadeEngine::do_fade(), MaskEngine::do_mask(), OverlayFrame::overlay(), and FrameWriter::write_frames().

void LoadServer::set_package_count int  total_packages  ) 
 

Definition at line 148 of file loadbalance.C.

References create_packages(), and delete_packages().

Referenced by FrameWriter::write_frames().


Friends And Related Function Documentation

friend class LoadClient [friend]
 

Definition at line 60 of file loadbalance.h.


Member Data Documentation

Mutex* LoadServer::client_lock
 

Definition at line 93 of file loadbalance.h.

Referenced by LoadServer(), LoadClient::run(), and ~LoadServer().

LoadClient** LoadServer::clients
 

Definition at line 91 of file loadbalance.h.

Referenced by create_clients(), delete_clients(), get_client(), LoadServer(), and process_packages().

int LoadServer::current_package
 

Definition at line 88 of file loadbalance.h.

Referenced by LoadServer(), process_packages(), and LoadClient::run().

LoadPackage** LoadServer::packages
 

Definition at line 89 of file loadbalance.h.

Referenced by create_packages(), delete_packages(), get_package(), MaskEngine::init_packages(), LoadServer(), and process_packages().

int LoadServer::total_clients
 

Definition at line 92 of file loadbalance.h.

Referenced by create_clients(), delete_clients(), get_total_clients(), and process_packages().

int LoadServer::total_packages
 

Definition at line 90 of file loadbalance.h.

Referenced by create_packages(), delete_packages(), get_total_packages(), ScaleEngine::init_packages(), FadeEngine::init_packages(), process_packages(), and LoadClient::run().


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