diff options
author | David Boddie <dboddie@trolltech.com> | 2009-08-11 18:30:16 (GMT) |
---|---|---|
committer | David Boddie <dboddie@trolltech.com> | 2009-08-11 18:30:16 (GMT) |
commit | 9605898c99490c9ad2b8cc1eb367d5531a18d1e3 (patch) | |
tree | c350df2c811d00116221d122fcae53be88e8118d /doc/src | |
parent | 1c62dc421cf1ae45fe5089674b4d67fd0f1ff529 (diff) | |
download | Qt-9605898c99490c9ad2b8cc1eb367d5531a18d1e3.zip Qt-9605898c99490c9ad2b8cc1eb367d5531a18d1e3.tar.gz Qt-9605898c99490c9ad2b8cc1eb367d5531a18d1e3.tar.bz2 |
Doc: Fixed code snippets in QReadLocker and QWriteLocker documentation.
Reviewed-by: Trust Me
Diffstat (limited to 'doc/src')
-rw-r--r-- | doc/src/snippets/code/src_corelib_thread_qreadwritelock.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/doc/src/snippets/code/src_corelib_thread_qreadwritelock.cpp b/doc/src/snippets/code/src_corelib_thread_qreadwritelock.cpp index f0f4935..dd4f533 100644 --- a/doc/src/snippets/code/src_corelib_thread_qreadwritelock.cpp +++ b/doc/src/snippets/code/src_corelib_thread_qreadwritelock.cpp @@ -38,9 +38,9 @@ QReadWriteLock lock; QByteArray readData() { - locker.lockForRead(); + lock.lockForRead(); ... - locker.unlock(); + lock.unlock(); return data; } //! [2] @@ -62,8 +62,8 @@ QReadWriteLock lock; void writeData(const QByteArray &data) { - locker.lockForWrite(); + lock.lockForWrite(); ... - locker.unlock(); + lock.unlock(); } //! [4] |