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

job_task Class Reference

class to send task to client thread More...

#include <thread.h>

List of all members.

Public Member Functions

 job_task ()
 default constructor
 job_task (terimber_thread_employer *employer, size_t ident, size_t timeout, void *user_data)
 constructor
 job_task (const job_task &x)
 copy constructor
job_taskoperator= (const job_task &x)
 assign operator
void clear ()
 clears job

Public Attributes

terimber_thread_employer_employer
 pointer to the class which will be doing the real job
size_t _ident
 ident, employer might to differ the different task inside do_job function
size_t _timeout
 timeout
void * _user_data
 additional data for employer class


Detailed Description

class to send task to client thread

Definition at line 39 of file thread.h.


Constructor & Destructor Documentation

job_task::job_task (  )  [inline]

default constructor

Definition at line 43 of file thread.h.

job_task::job_task ( terimber_thread_employer employer,
size_t  ident,
size_t  timeout,
void *  user_data 
) [inline]

constructor

Parameters:
employer  user callback
ident  thread ident
timeout  timeout for next v_has_job call if the first one returns false
user_data  user defined data

Definition at line 51 of file thread.h.

job_task::job_task ( const job_task x  )  [inline]

copy constructor

Definition at line 63 of file thread.h.


Member Function Documentation

job_task& job_task::operator= ( const job_task x  )  [inline]

assign operator

Definition at line 68 of file thread.h.

References _employer, _ident, _timeout, and _user_data.

void job_task::clear (  )  [inline]

clears job

Definition at line 80 of file thread.h.

References _employer, _ident, _timeout, and _user_data.

Referenced by thread::cancel_job().


Member Data Documentation

pointer to the class which will be doing the real job

Definition at line 88 of file thread.h.

Referenced by clear(), thread::execute(), and operator=().

ident, employer might to differ the different task inside do_job function

Definition at line 89 of file thread.h.

Referenced by clear(), thread::execute(), and operator=().

timeout

Definition at line 90 of file thread.h.

Referenced by clear(), operator=(), and thread::sleep().

additional data for employer class

Definition at line 91 of file thread.h.

Referenced by clear(), thread::execute(), and operator=().


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


© Copyright Terimber 2003-.