mirror of
https://github.com/aseprite/aseprite.git
synced 2024-12-29 00:23:48 +00:00
Remove unnecessary locks in app::Job
This commit is contained in:
parent
395baa3296
commit
e17804e9ff
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user