diff options
author | Ritt Konstantin <ritt.ks@gmail.com> | 2010-01-11 14:23:06 (GMT) |
---|---|---|
committer | Thiago Macieira <thiago.macieira@nokia.com> | 2010-01-11 15:18:11 (GMT) |
commit | d1fe5a2c0b9d21b32e9d65b59f120776a79d022c (patch) | |
tree | 5c41e8417e9737998e048c5b3a63156069bbf78f /src/corelib/thread/qreadwritelock.cpp | |
parent | 96827cf7675c8555a97ff6b3ec8083940e27a41d (diff) | |
download | Qt-d1fe5a2c0b9d21b32e9d65b59f120776a79d022c.zip Qt-d1fe5a2c0b9d21b32e9d65b59f120776a79d022c.tar.gz Qt-d1fe5a2c0b9d21b32e9d65b59f120776a79d022c.tar.bz2 |
fix typo in qreadwritelock's documentation
Merge-request: 426
Reviewed-by: Thiago Macieira <thiago.macieira@nokia.com>
Diffstat (limited to 'src/corelib/thread/qreadwritelock.cpp')
-rw-r--r-- | src/corelib/thread/qreadwritelock.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/corelib/thread/qreadwritelock.cpp b/src/corelib/thread/qreadwritelock.cpp index 3463eab..bd07a97 100644 --- a/src/corelib/thread/qreadwritelock.cpp +++ b/src/corelib/thread/qreadwritelock.cpp @@ -82,7 +82,7 @@ QT_BEGIN_NAMESPACE Like QMutex, a QReadWriteLock can be recursively locked by the same thread when constructed in - \l{QReadWriteLock::RecursionMode}recursive mode}. In such cases, + \l{QReadWriteLock::RecursionMode}. In such cases, unlock() must be called the same number of times lockForWrite() or lockForRead() was called. Note that the lock type cannot be changed when trying to lock recursively, i.e. it is not possible @@ -266,12 +266,12 @@ bool QReadWriteLock::tryLockForRead(int timeout) return true; } - /*! +/*! Locks the lock for writing. This function will block the current thread if another thread has locked for reading or writing. \sa unlock() lockForRead() tryLockForWrite() - */ +*/ void QReadWriteLock::lockForWrite() { QMutexLocker lock(&d->mutex); |