svcore
1.9
|
#include <FileReadThread.h>
Classes | |
struct | Request |
Public Types | |
enum | Type { RTThread, NonRTThread } |
Public Slots | |
void | start () |
Public Member Functions | |
FileReadThread () | |
void | run () override |
virtual void | finish () |
virtual int | request (const Request &request) |
virtual void | cancel (int token) |
virtual bool | isReady (int token) |
virtual bool | isCancelled (int token) |
virtual bool | haveRequest (int token) |
virtual bool | getRequest (int token, Request &request) |
virtual void | done (int token) |
Protected Types | |
typedef std::map< int, Request > | RequestQueue |
Protected Member Functions | |
void | process () |
void | notifyCancelled () |
Protected Attributes | |
int | m_nextToken |
bool | m_exiting |
RequestQueue | m_queue |
RequestQueue | m_cancelledRequests |
RequestQueue | m_readyRequests |
std::set< int > | m_newlyCancelled |
QMutex | m_mutex |
QWaitCondition | m_condition |
Detailed Description
Definition at line 29 of file FileReadThread.h.
Member Typedef Documentation
|
protected |
Definition at line 61 of file FileReadThread.h.
Member Enumeration Documentation
|
inherited |
Constructor & Destructor Documentation
FileReadThread::FileReadThread | ( | ) |
Definition at line 34 of file FileReadThread.cpp.
Member Function Documentation
|
overridevirtual |
Implements Thread.
Definition at line 41 of file FileReadThread.cpp.
References m_condition, m_exiting, m_mutex, m_queue, notifyCancelled(), process(), and SVDEBUG.
|
virtual |
Definition at line 62 of file FileReadThread.cpp.
References m_cancelledRequests, m_condition, m_exiting, m_mutex, m_newlyCancelled, m_queue, and SVDEBUG.
|
virtual |
Definition at line 88 of file FileReadThread.cpp.
References m_condition, m_mutex, m_nextToken, and m_queue.
Referenced by process().
|
virtual |
Definition at line 105 of file FileReadThread.cpp.
References m_cancelledRequests, m_condition, m_mutex, m_newlyCancelled, m_queue, m_readyRequests, and SVDEBUG.
|
virtual |
Definition at line 130 of file FileReadThread.cpp.
References m_mutex, and m_readyRequests.
|
virtual |
Definition at line 140 of file FileReadThread.cpp.
References m_cancelledRequests, m_mutex, and m_newlyCancelled.
|
virtual |
Definition at line 152 of file FileReadThread.cpp.
References m_cancelledRequests, m_mutex, m_queue, and m_readyRequests.
|
virtual |
Definition at line 170 of file FileReadThread.cpp.
References m_cancelledRequests, m_mutex, m_queue, and m_readyRequests.
|
virtual |
Definition at line 191 of file FileReadThread.cpp.
References m_cancelledRequests, m_mutex, m_newlyCancelled, m_queue, and m_readyRequests.
|
protected |
Definition at line 214 of file FileReadThread.cpp.
References FileReadThread::Request::data, FileReadThread::Request::fd, m_exiting, m_mutex, m_queue, m_readyRequests, FileReadThread::Request::mutex, request(), FileReadThread::Request::size, FileReadThread::Request::start, FileReadThread::Request::successful, and SVDEBUG.
Referenced by run().
|
protected |
Definition at line 313 of file FileReadThread.cpp.
References m_newlyCancelled, and SVDEBUG.
Referenced by run().
|
slotinherited |
Definition at line 34 of file Thread.cpp.
References Thread::m_type, and Thread::RTThread.
Referenced by BQAFileReader::BQAFileReader(), DecodingWavFileReader::DecodingWavFileReader(), ReadOnlyWaveFileModel::fillCache(), MP3FileReader::MP3FileReader(), DSSIPluginInstance::requestNonRTThread(), and ModelTransformerFactory::transformMultiple().
Member Data Documentation
|
protected |
Definition at line 58 of file FileReadThread.h.
Referenced by request().
|
protected |
Definition at line 59 of file FileReadThread.h.
|
protected |
Definition at line 62 of file FileReadThread.h.
Referenced by cancel(), done(), finish(), getRequest(), haveRequest(), process(), request(), and run().
|
protected |
Definition at line 63 of file FileReadThread.h.
Referenced by cancel(), done(), finish(), getRequest(), haveRequest(), and isCancelled().
|
protected |
Definition at line 64 of file FileReadThread.h.
Referenced by cancel(), done(), getRequest(), haveRequest(), isReady(), and process().
|
protected |
Definition at line 65 of file FileReadThread.h.
Referenced by cancel(), done(), finish(), isCancelled(), and notifyCancelled().
|
protected |
Definition at line 67 of file FileReadThread.h.
Referenced by cancel(), done(), finish(), getRequest(), haveRequest(), isCancelled(), isReady(), process(), request(), and run().
|
protected |
The documentation for this class was generated from the following files:
Generated by 1.8.11