[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: kdesupport/akonadi/server/src/search
From: David Faure <faure () kde ! org>
Date: 2010-02-14 11:02:07
Message-ID: 1266145327.477724.582.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 1089960 by dfaure:
apply fix r1089483 by trueg: use a static counter to make sure we use unique names
M +4 -3 queryserviceclient.cpp
--- trunk/kdesupport/akonadi/server/src/search/queryserviceclient.cpp #1089959:1089960
@@ -31,6 +31,8 @@
#include <QtCore/QTimer>
namespace {
+
+ QAtomicInt s_connectionCounter;
/**
* Each thread needs its own QDBusConnection. We do it the very easy
* way and just create a new connection for each client
@@ -52,10 +54,9 @@
static QDBusConnection threadConnection();
private:
- int newNumber() {
- return m_counter.fetchAndAddAcquire(1);
+ static int newNumber() {
+ return s_connectionCounter.fetchAndAddAcquire(1);
}
- QAtomicInt m_counter;
QDBusConnection m_connection;
};
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic