Thread portable class


Gate portable class


Timer class


Pool class


Terimber 2.0


About C++


Downloads Products & Services Support Clients Open Source About



Home / Open source / Terimber 2.0

terimber_thread_employer Class Reference

abstract interface for user of thread manager base job employer class employer is responsible for synchronization while job is requested and processed More...

#include <threadpoolfactory.h>

Inheritance diagram for terimber_thread_employer:

aiofile aiogate aiosock dbserver_impl msg_queue_processor threadpool timer mysql_dbserver odbc_dbserver orcl_dbserver msg_communicator msg_connection msg_rpc_connection msg_sock_connection msg_user_connection

List of all members.

Public Member Functions

virtual ~terimber_thread_employer ()
 destructor
virtual bool v_has_job (size_t ident, void *user_data)=0
 checks job
virtual void v_do_job (size_t ident, void *user_data)=0
 does job


Detailed Description

abstract interface for user of thread manager base job employer class employer is responsible for synchronization while job is requested and processed

Definition at line 38 of file threadpoolfactory.h.


Constructor & Destructor Documentation

virtual terimber_thread_employer::~terimber_thread_employer (  )  [inline, virtual]

destructor

Definition at line 42 of file threadpoolfactory.h.


Member Function Documentation

virtual bool terimber_thread_employer::v_has_job ( size_t  ident,
void *  user_data 
) [pure virtual]

checks job

the real implementation depends on what to do leave for future implementation

Parameters:
ident  thread ident
user_data  user defined data

Implemented in threadpool, timer, aiosock, aiogate, dbserver_impl, aiofile, msg_queue_processor, msg_sock_connection, and msg_user_connection.

Referenced by thread::execute(), and threadpool::v_has_job().

virtual void terimber_thread_employer::v_do_job ( size_t  ident,
void *  user_data 
) [pure virtual]

does job

Parameters:
ident  thread ident
user_data  user defined data

Implemented in threadpool, timer, aiosock, aiogate, dbserver_impl, aiofile, msg_communicator, msg_rpc_connection, msg_sock_connection, and msg_user_connection.

Referenced by thread::execute(), and threadpool::v_do_job().


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


© Copyright Terimber 2003-.