Remove unnecessary locks in app::Job

This commit is contained in:
David Capello 2015-04-20 17:30:01 -03:00
parent 395baa3296
commit e17804e9ff

View File

@ -87,13 +87,11 @@ void Job::waitJob()
void Job::jobProgress(double f) void Job::jobProgress(double f)
{ {
base::scoped_lock hold(*m_mutex);
m_last_progress = f; m_last_progress = f;
} }
bool Job::isCanceled() bool Job::isCanceled()
{ {
base::scoped_lock hold(*m_mutex);
return m_canceled_flag; return m_canceled_flag;
} }