Merge QReadWriteLock constructor overloads per Qt 5 comment.
Change-Id: I3b569b1240a0bc5b2589de353dbf62c175472448 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
This commit is contained in:
parent
341b62d308
commit
e5f84ebf01
@ -106,20 +106,13 @@ QT_BEGIN_NAMESPACE
|
||||
\sa QReadWriteLock()
|
||||
*/
|
||||
|
||||
/*!
|
||||
Constructs a QReadWriteLock object in NonRecursive mode.
|
||||
|
||||
\sa lockForRead(), lockForWrite()
|
||||
*/
|
||||
QReadWriteLock::QReadWriteLock()
|
||||
:d(new QReadWriteLockPrivate(NonRecursive))
|
||||
{ }
|
||||
|
||||
/*!
|
||||
\since 4.4
|
||||
|
||||
Constructs a QReadWriteLock object in the given \a recursionMode.
|
||||
|
||||
The default recursion mode is NonRecursive.
|
||||
|
||||
\sa lockForRead(), lockForWrite(), RecursionMode
|
||||
*/
|
||||
QReadWriteLock::QReadWriteLock(RecursionMode recursionMode)
|
||||
|
@ -60,8 +60,7 @@ class Q_CORE_EXPORT QReadWriteLock
|
||||
public:
|
||||
enum RecursionMode { NonRecursive, Recursive };
|
||||
|
||||
QReadWriteLock(); // ### Qt 5: merge with below
|
||||
QReadWriteLock(RecursionMode recursionMode);
|
||||
explicit QReadWriteLock(RecursionMode recursionMode = NonRecursive);
|
||||
~QReadWriteLock();
|
||||
|
||||
void lockForRead();
|
||||
|
Loading…
Reference in New Issue
Block a user