Removed Windows-style line breaks (^M) from all .cc and .h source files.
This commit is contained in:
@@ -1,21 +1,21 @@
|
||||
/*
|
||||
* This file is part of RawTherapee.
|
||||
*
|
||||
* Copyright (c) 2004-2010 Gabor Horvath <hgabor@rawtherapee.com>
|
||||
*
|
||||
* RawTherapee is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* RawTherapee is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with RawTherapee. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
/*
|
||||
* This file is part of RawTherapee.
|
||||
*
|
||||
* Copyright (c) 2004-2010 Gabor Horvath <hgabor@rawtherapee.com>
|
||||
*
|
||||
* RawTherapee is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* RawTherapee is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with RawTherapee. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
#include <bqentryupdater.h>
|
||||
#include <gtkmm.h>
|
||||
#include <guiutils.h>
|
||||
@@ -24,7 +24,7 @@ BatchQueueEntryUpdater batchQueueEntryUpdater;
|
||||
|
||||
BatchQueueEntryUpdater::BatchQueueEntryUpdater ()
|
||||
: tostop(false), stopped(true), qMutex(NULL) {
|
||||
}
|
||||
}
|
||||
|
||||
void BatchQueueEntryUpdater::add (guint8* oimg, int ow, int oh, int newh, BQEntryUpdateListener* listener) {
|
||||
|
||||
@@ -53,35 +53,35 @@ void BatchQueueEntryUpdater::add (guint8* oimg, int ow, int oh, int newh, BQEntr
|
||||
jqueue.push_back (j);
|
||||
}
|
||||
qMutex->unlock ();
|
||||
}
|
||||
}
|
||||
|
||||
void BatchQueueEntryUpdater::process () {
|
||||
|
||||
if (stopped)
|
||||
#undef THREAD_PRIORITY_NORMAL
|
||||
thread = Glib::Thread::create(sigc::mem_fun(*this, &BatchQueueEntryUpdater::process_), (unsigned long int)0, true, true, Glib::THREAD_PRIORITY_NORMAL);
|
||||
}
|
||||
if (stopped)
|
||||
#undef THREAD_PRIORITY_NORMAL
|
||||
thread = Glib::Thread::create(sigc::mem_fun(*this, &BatchQueueEntryUpdater::process_), (unsigned long int)0, true, true, Glib::THREAD_PRIORITY_NORMAL);
|
||||
}
|
||||
|
||||
void BatchQueueEntryUpdater::process_ () {
|
||||
void BatchQueueEntryUpdater::process_ () {
|
||||
|
||||
stopped = false;
|
||||
tostop = false;
|
||||
stopped = false;
|
||||
tostop = false;
|
||||
|
||||
// TODO: process visible jobs first
|
||||
while (!tostop && !jqueue.empty ()) {
|
||||
// TODO: process visible jobs first
|
||||
while (!tostop && !jqueue.empty ()) {
|
||||
qMutex->lock ();
|
||||
Job current = jqueue.front ();
|
||||
Job current = jqueue.front ();
|
||||
jqueue.pop_front ();
|
||||
qMutex->unlock ();
|
||||
if (current.listener) {
|
||||
int neww = current.newh * current.ow / current.oh;
|
||||
guint8* img = new guint8 [current.newh*neww*3];
|
||||
guint8* img = new guint8 [current.newh*neww*3];
|
||||
thumbInterp (current.oimg, current.ow, current.oh, img, neww, current.newh);
|
||||
current.listener->updateImage (img, neww, current.newh);
|
||||
}
|
||||
}
|
||||
stopped = true;
|
||||
}
|
||||
stopped = true;
|
||||
}
|
||||
|
||||
void BatchQueueEntryUpdater::stop () {
|
||||
|
||||
@@ -95,7 +95,7 @@ void BatchQueueEntryUpdater::stop () {
|
||||
if (!stopped)
|
||||
thread->join ();
|
||||
gdk_threads_enter();
|
||||
}
|
||||
}
|
||||
|
||||
void BatchQueueEntryUpdater::removeJobs () {
|
||||
|
||||
@@ -126,8 +126,8 @@ void BatchQueueEntryUpdater::removeJobs (BQEntryUpdateListener* listener) {
|
||||
}
|
||||
}
|
||||
qMutex->unlock ();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
void BatchQueueEntryUpdater::terminate () {
|
||||
|
||||
stop ();
|
||||
|
Reference in New Issue
Block a user