diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-01-07 03:45:53 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-01-07 03:45:53 +0000 |
commit | 10308be19ef7fa44699562cc75946e7ea1fdf6b9 (patch) | |
tree | 4bc444c00a79e88105f2cfce5b6209994c413ca0 /kdecore/network/kresolvermanager.cpp | |
parent | 307136d8eef0ba133b78ceee8e901138d4c996a1 (diff) | |
download | tdelibs-10308be19ef7fa44699562cc75946e7ea1fdf6b9.tar.gz tdelibs-10308be19ef7fa44699562cc75946e7ea1fdf6b9.zip |
Revert automated changes
Sorry guys, they are just not ready for prime time
Work will continue as always
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1212479 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kdecore/network/kresolvermanager.cpp')
-rw-r--r-- | kdecore/network/kresolvermanager.cpp | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/kdecore/network/kresolvermanager.cpp b/kdecore/network/kresolvermanager.cpp index b97f58005..b3c7172ae 100644 --- a/kdecore/network/kresolvermanager.cpp +++ b/kdecore/network/kresolvermanager.cpp @@ -85,11 +85,11 @@ using namespace KNetwork::Internal; process, which means it will lock and unlock the manager mutex in the process. - If it tqfinds no new data, it'll wait on the feedWorkers condition + If it finds no new data, it'll wait on the feedWorkers condition for a certain maximum time. If that time expires and there's still no data, the thread will exit, in order to save system resources. - If it tqfinds data, however, it'll set up and call the worker class + If it finds data, however, it'll set up and call the worker class that has been selected by the manager. Once that worker is done, the thread releases the data through KResolverManager::releaseData. @@ -99,7 +99,7 @@ using namespace KNetwork::Internal; When data is being requested, the KResolverManager::requestData function will look the currentRequests list and return the first - Queued request it tqfinds, while marking it to be InProgress. + Queued request it finds, while marking it to be InProgress. When the worker class has returned, the worker thread will release that data through the KResolverManager::releaseData function. If the @@ -367,7 +367,7 @@ RequestData* KResolverManager::requestData(KResolverThread *th, int maxWaitTime) // lock the mutex, so that the manager thread or other threads won't // interfere. TQMutexLocker locker(&mutex); - RequestData *data = tqfindData(th); + RequestData *data = findData(th); if (data) // it found something, that's good @@ -378,18 +378,18 @@ RequestData* KResolverManager::requestData(KResolverThread *th, int maxWaitTime) feedWorkers.wait(&mutex, maxWaitTime); availableThreads--; - data = tqfindData(th); + data = findData(th); return data; } -RequestData* KResolverManager::tqfindData(KResolverThread* th) +RequestData* KResolverManager::findData(KResolverThread* th) { ///// // This function is called by @ref requestData above and must // always be called with a locked mutex ///// - // now tqfind data to be processed + // now find data to be processed for (RequestData *curr = newRequests.first(); curr; curr = newRequests.next()) if (!curr->worker->m_finished) { @@ -504,7 +504,7 @@ void KResolverManager::registerNewWorker(KResolverWorkerFactoryBase *factory) workerFactories.append(factory); } -KResolverWorkerBase* KResolverManager::tqfindWorker(KResolverPrivate* p) +KResolverWorkerBase* KResolverManager::findWorker(KResolverPrivate* p) { ///// // this function can be called on any user thread @@ -514,7 +514,7 @@ KResolverWorkerBase* KResolverManager::tqfindWorker(KResolverPrivate* p) // thread-safe! // but the factory list is expected not to be changed asynchronously - // This function is responsible for tqfinding a suitable worker for the given + // This function is responsible for finding a suitable worker for the given // input. That means we have to do a costly operation to create each worker // class and call their preprocessing functions. The first one that // says they can process (i.e., preprocess() returns true) will get the job. @@ -653,12 +653,12 @@ void KResolverManager::enqueue(KResolver *obj, RequestData *requestor) newrequest->input = &obj->d->input; newrequest->requestor = requestor; - // when processing a new request, tqfind the most + // when processing a new request, find the most // suitable worker - if ((newrequest->worker = tqfindWorker(obj->d)) == 0L) + if ((newrequest->worker = findWorker(obj->d)) == 0L) { // oops, problem - // cannot tqfind a worker class for this guy + // cannot find a worker class for this guy obj->d->status = KResolver::Failed; obj->d->errorcode = KResolver::UnsupportedFamily; obj->d->syserror = 0; @@ -668,7 +668,7 @@ void KResolverManager::enqueue(KResolver *obj, RequestData *requestor) } // no, queue it - // p->status was set in tqfindWorker! + // p->status was set in findWorker! if (requestor) requestor->nRequests++; @@ -728,7 +728,7 @@ void KResolverManager::dispatch(RequestData *data) { // yes, a new thread should be started - // tqfind if there's a finished one + // find if there's a finished one KResolverThread *th = workers.first(); while (th && th->running()) th = workers.next(); |