#include <KviThread.h>
KviThreadManager::KviThreadManager |
( |
| ) |
|
|
protected |
References connect(), eventsPending(), KviError::getDescription(), KVI_THREAD_PIPE_SIDE_MASTER, KVI_THREAD_PIPE_SIDE_SLAVE, m_fd, m_iTriggerCount, m_iWaitingThreads, m_pEventQueue, m_pMutex, m_pSn, m_pThreadList, KviPointerList< T >::setAutoDelete(), and KviError::translateSystemError().
Referenced by globalInit().
KviThreadManager::~KviThreadManager |
( |
| ) |
|
|
protected |
References KviPointerList< T >::first(), KVI_THREAD_PIPE_SIDE_MASTER, KVI_THREAD_PIPE_SIDE_SLAVE, KviMutex::lock(), m_fd, m_pEventQueue, m_pMutex, m_pSn, m_pThreadList, t(), and KviMutex::unlock().
void KviThreadManager::eventsPending |
( |
int |
fd | ) |
|
|
privateslot |
void KviThreadManager::globalDestroy |
( |
| ) |
|
|
staticprotected |
void KviThreadManager::globalInit |
( |
| ) |
|
|
staticprotected |
void KviThreadManager::killPendingEvents |
( |
QObject * |
receiver | ) |
|
|
static |
void KviThreadManager::killPendingEventsByReceiver |
( |
QObject * |
receiver | ) |
|
|
protected |
void KviThreadManager::postSlaveEvent |
( |
QObject * |
o, |
|
|
QEvent * |
e |
|
) |
| |
|
protected |
References e, _KviThreadPendingEvent::e, KVI_THREAD_MAX_EVENT_QUEUE_LENGTH, KVI_THREAD_PIPE_SIDE_SLAVE, KviMutex::lock(), m_fd, m_iTriggerCount, m_iWaitingThreads, m_pEventQueue, m_pMutex, o, _KviThreadPendingEvent::o, and KviMutex::unlock().
Referenced by KviThread::postEvent().
void KviThreadManager::registerSlaveThread |
( |
KviThread * |
t | ) |
|
|
protected |
void KviThreadManager::threadEnteredWaitState |
( |
| ) |
|
|
protected |
void KviThreadManager::threadLeftWaitState |
( |
| ) |
|
|
protected |
void KviThreadManager::unregisterSlaveThread |
( |
KviThread * |
t | ) |
|
|
protected |
int KviThreadManager::m_fd[2] |
|
private |
int KviThreadManager::m_iTriggerCount |
|
private |
int KviThreadManager::m_iWaitingThreads |
|
private |
QSocketNotifier* KviThreadManager::m_pSn |
|
private |
The documentation for this class was generated from the following files: