QxOrm  1.4.5
C++ Object Relational Mapping library

qx::service::QxThread : thread to execute a transaction of QxService module More...

#include <QxThread.h>

List of all members.


void error (const QString &err, qx::service::QxTransaction_ptr transaction)
void transactionStarted (qx::service::QxTransaction_ptr transaction)
void transactionFinished (qx::service::QxTransaction_ptr transaction)

Public Member Functions

 QxThread (QxThreadPool *pool)
virtual ~QxThread ()
bool isAvailable ()
void stop ()
void execute (QX_TYPE_SOCKET_DESC socketDescriptor)

Static Public Member Functions

static void sleepCurrentThread (unsigned long msecs)

Protected Member Functions

virtual void run ()
void clearData ()
void doProcess (QTcpSocket &socket)
qx_bool readSocket (QTcpSocket &socket)
qx_bool writeSocket (QTcpSocket &socket)

Protected Attributes

QX_TYPE_SOCKET_DESC m_iSocketDescriptor
 Socket descriptor to retrieve 'QTcpSocket'.
 Parent thread pool to set available.
QxTransaction_ptr m_pTransaction
 Current service transaction.
bool m_bIsRunning
 Set this flag to 'false' to terminate thread.
QMutex m_mutex
 Mutex => 'QxThread' is thread-safe.

Detailed Description

Constructor & Destructor Documentation

qx::service::QxThread::QxThread ( QxThreadPool pool) [inline]

Definition at line 93 of file QxThread.h.

virtual qx::service::QxThread::~QxThread ( ) [inline, virtual]

Definition at line 94 of file QxThread.h.

Member Function Documentation

void qx::service::QxThread::clearData ( ) [protected]
void qx::service::QxThread::doProcess ( QTcpSocket &  socket) [protected]
void qx::service::QxThread::error ( const QString &  err,
qx::service::QxTransaction_ptr  transaction 
) [signal]
void qx::service::QxThread::execute ( QX_TYPE_SOCKET_DESC  socketDescriptor)
bool qx::service::QxThread::isAvailable ( )
qx_bool qx::service::QxThread::readSocket ( QTcpSocket &  socket) [protected]
virtual void qx::service::QxThread::run ( ) [protected, virtual]
static void qx::service::QxThread::sleepCurrentThread ( unsigned long  msecs) [inline, static]

Definition at line 100 of file QxThread.h.

void qx::service::QxThread::stop ( )
void qx::service::QxThread::transactionFinished ( qx::service::QxTransaction_ptr  transaction) [signal]
void qx::service::QxThread::transactionStarted ( qx::service::QxTransaction_ptr  transaction) [signal]
qx_bool qx::service::QxThread::writeSocket ( QTcpSocket &  socket) [protected]

Member Data Documentation

Set this flag to 'false' to terminate thread.

Definition at line 88 of file QxThread.h.

QX_TYPE_SOCKET_DESC qx::service::QxThread::m_iSocketDescriptor [protected]

Socket descriptor to retrieve 'QTcpSocket'.

Definition at line 85 of file QxThread.h.

QMutex qx::service::QxThread::m_mutex [protected]

Mutex => 'QxThread' is thread-safe.

Definition at line 89 of file QxThread.h.

Parent thread pool to set available.

Definition at line 86 of file QxThread.h.

Current service transaction.

Definition at line 87 of file QxThread.h.

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