"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/ThreadRunnerDlgImpl.cpp" between
MP3Diags-unstable-1.3.04.tar.gz and MP3Diags-unstable-1.5.01.tar.gz

About: MP3 Diags finds problems in MP3 files and helps the user to fix many of them (with a GUI). Also includes a tag editor and a file renamer.

ThreadRunnerDlgImpl.cpp  (MP3Diags-unstable-1.3.04):ThreadRunnerDlgImpl.cpp  (MP3Diags-unstable-1.5.01)
skipping to change at line 24 skipping to change at line 24
* GNU General Public License for more details. * * GNU General Public License for more details. *
* * * *
* You should have received a copy of the GNU General Public License * * You should have received a copy of the GNU General Public License *
* along with this program; if not, write to the * * along with this program; if not, write to the *
* Free Software Foundation, Inc., * * Free Software Foundation, Inc., *
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
***************************************************************************/ ***************************************************************************/
#include <QCloseEvent> #include <QCloseEvent>
#include <QLocale> #include <QLocale>
#include <QAction>
#include <ctime> #include <ctime>
#include "ThreadRunnerDlgImpl.h" #include "ThreadRunnerDlgImpl.h"
#include "Helpers.h" #include "Helpers.h"
PausableThread::PausableThread(/*QObject* pParent = 0*/) : /*QThread(pParent),*/ m_bPaused(false), m_bAborted(false) PausableThread::PausableThread(/*QObject* pParent = 0*/) : /*QThread(pParent),*/ m_bPaused(false), m_bAborted(false)
{ {
static bool s_bRegistered (false); static bool s_bRegistered (false);
skipping to change at line 80 skipping to change at line 81
if (!m_bPaused) { return; } // !!! it was tested 2 lines above, but might ha ve changed after that; now it's a different story, because it's protected by the mutex; if (!m_bPaused) { return; } // !!! it was tested 2 lines above, but might ha ve changed after that; now it's a different story, because it's protected by the mutex;
if (m_bAborted) { return; } if (m_bAborted) { return; }
m_waitCondition.wait(&m_mutex); m_waitCondition.wait(&m_mutex);
} }
//============================================================================== ======================================= //============================================================================== =======================================
//============================================================================== ======================================= //============================================================================== =======================================
//============================================================================== ======================================= //============================================================================== =======================================
ThreadRunnerDlgImpl::ThreadRunnerDlgImpl(QWidget* pParent, Qt::WFlags flags, Pau sableThread* pThread, bool bShowCounter, TruncatePos eTruncatePos, bool bShowPau seAbort /* = true*/) : ThreadRunnerDlgImpl::ThreadRunnerDlgImpl(QWidget* pParent, Qt::WindowFlags flags , PausableThread* pThread, bool bShowCounter, TruncatePos eTruncatePos, bool bSh owPauseAbort /* = true*/) :
QDialog(pParent, flags), QDialog(pParent, flags),
Ui::ThreadRunnerDlg(), Ui::ThreadRunnerDlg(),
m_pThread(pThread), m_pThread(pThread),
m_nCounter(0), m_nCounter(0),
m_bShowCounter(bShowCounter), m_bShowCounter(bShowCounter),
//m_nLastKey(0), //m_nLastKey(0),
m_tRealBegin(time(0)), m_tRealBegin(time(0)),
m_tRunningBegin(time(0)), m_tRunningBegin(time(0)),
 End of changes. 2 change blocks. 
1 lines changed or deleted 2 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)