![]() |
QxOrm
1.2.7
C++ Object Relational Mapping library
|
qx::service::QxThread : thread to execute a transaction of QxService module More...
#include <QxThread.h>
Signals | |
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'. | |
QxThreadPool * | m_pThreadPool |
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. |
qx::service::QxThread : thread to execute a transaction of QxService module
Click here to access to a tutorial to explain how to work with QxService module.
Definition at line 72 of file QxThread.h.
qx::service::QxThread::QxThread | ( | QxThreadPool * | pool | ) | [inline] |
Definition at line 85 of file QxThread.h.
virtual qx::service::QxThread::~QxThread | ( | ) | [inline, virtual] |
Definition at line 86 of file QxThread.h.
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 92 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] |
bool qx::service::QxThread::m_bIsRunning [protected] |
Set this flag to 'false' to terminate thread.
Definition at line 80 of file QxThread.h.
QX_TYPE_SOCKET_DESC qx::service::QxThread::m_iSocketDescriptor [protected] |
Socket descriptor to retrieve 'QTcpSocket'.
Definition at line 77 of file QxThread.h.
QMutex qx::service::QxThread::m_mutex [protected] |
Mutex => 'QxThread' is thread-safe.
Definition at line 81 of file QxThread.h.
QxThreadPool* qx::service::QxThread::m_pThreadPool [protected] |
Parent thread pool to set available.
Definition at line 78 of file QxThread.h.
Current service transaction.
Definition at line 79 of file QxThread.h.