diff options
author | Ritt Konstantin <ritt.ks@gmail.com> | 2011-06-01 14:49:37 (GMT) |
---|---|---|
committer | Harald Fernengel <harald.fernengel@nokia.com> | 2011-06-01 14:49:37 (GMT) |
commit | 8d6e9dcc2eba13647b2c608fc20cf85ae9b99426 (patch) | |
tree | 3d0358c596d0fce0a444c26d9830362eacedcf5e /src | |
parent | 02c7d2d114bf2f5fb2a1947e6370046f0141499b (diff) | |
download | Qt-8d6e9dcc2eba13647b2c608fc20cf85ae9b99426.zip Qt-8d6e9dcc2eba13647b2c608fc20cf85ae9b99426.tar.gz Qt-8d6e9dcc2eba13647b2c608fc20cf85ae9b99426.tar.bz2 |
add a warning on an incorrect usage of QLock
Merge-request: 1237
Reviewed-by: Harald Fernengel <harald.fernengel@nokia.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/gui/embedded/qlock.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gui/embedded/qlock.cpp b/src/gui/embedded/qlock.cpp index 8f24e7d..034f5fb 100644 --- a/src/gui/embedded/qlock.cpp +++ b/src/gui/embedded/qlock.cpp @@ -272,6 +272,8 @@ void QLock::lock(Type t) qDebug("Semop lock failure %s",strerror(errno)); } while (rv == -1 && errno == EINTR); #endif + } else if (type == Read && t == Write) { + qDebug("QLock::lock: Attempt to lock for write while locked for read"); } data->count++; } |