diff options
author | Venugopal Shivashankar <venugopal.shivashankar@digia.com> | 2013-04-12 06:29:30 -0700 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-05-06 10:21:22 +0200 |
commit | d424c1ee4494baffdc4715440f86ef80a94fd7a5 (patch) | |
tree | 3d25bad5f88fc640cb95192762cac38aba78e7c9 /examples/serialport/doc/blockingmaster.qdoc | |
parent | 5abd6a5afd5f1429df59b3d2b373b6dfad8070c2 (diff) | |
download | qtserialport-d424c1ee4494baffdc4715440f86ef80a94fd7a5.tar.gz |
Doc: Updates based on sanity checkv5.1.0-beta1
- Removed redundant qdoc pages on supported
platforms, getting source, and building from source.
- Added a module page to list the C++ classes
- Removed unnecessary \module commands in several pages
- Made a few language edits to class documentation
- Updated the index page with some introductory content
- Fixed broken links to the examples
Change-Id: Ia7bd74b383f344426814db736f7bc4cd77c13992
Reviewed-by: Laszlo Papp <lpapp@kde.org>
Diffstat (limited to 'examples/serialport/doc/blockingmaster.qdoc')
-rw-r--r-- | examples/serialport/doc/blockingmaster.qdoc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/examples/serialport/doc/blockingmaster.qdoc b/examples/serialport/doc/blockingmaster.qdoc index 40ac070..4bf4b86 100644 --- a/examples/serialport/doc/blockingmaster.qdoc +++ b/examples/serialport/doc/blockingmaster.qdoc @@ -43,17 +43,17 @@ and performed when the control returns to Qt's event loop. QSerialPort emits a signal when the operation is finished. For example, QSerialPort::write() returns immediately. When the data is sent to the serial port, QSerialPort - emits \l{QSerialPort::bytesWritten()}{bytesWritten()}. + emits \l{QIODevice::bytesWritten()}{bytesWritten()}. \li \e{The synchronous (blocking) approach.} In non-GUI and multithreaded applications, the \c waitFor...() functions can be called (i.e. - QSerialPort::waitReadyRead()) to suspend the calling thread until the + QSerialPort::waitForReadyRead()) to suspend the calling thread until the operation has completed. \endlist In this example, the synchronous approach is demonstrated. The - \l{terminal}{Simple Terminal} example illustrates the + \l{terminal}{Terminal} example illustrates the asynchronous approach. The purpose of this example is to demonstrate a pattern that you can use @@ -102,7 +102,7 @@ serial port name, timeout and request data from the member data, and then releasing the lock again. The case that we are protecting ourselves against is that \c transaction() could be called at the same time as we are fetching - this data. QString is \l reentrant but \e not \l{thread-safe}, and we must + this data. QString is reentrant but not thread-safe, and we must also avoid the unlikely risk of reading the serial port name from one request, and timeout or request data of another. And as you might have guessed, MasterThread can only handle one request at a time. @@ -158,5 +158,5 @@ \snippet blockingmaster/masterthread.cpp 13 - \sa {Simple Terminal Example}, {Blocking Slave Example} + \sa {Terminal Example}, {Blocking Slave Example} */ |