forked from enlightenment/efl
eina debug: fix a double unlock issue
Summary: It was caught by Covertity. This patch will remove a potential double unlock issue. @fix Test Plan: N/A Reviewers: zmike, raster, cedric, Hermet, eagleeye Reviewed By: eagleeye Subscribers: #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D7137
This commit is contained in:
parent
75296e32df
commit
038346dce0
|
@ -281,11 +281,14 @@ _stop_cpu_thread(void)
|
||||||
{
|
{
|
||||||
usleep(1000);
|
usleep(1000);
|
||||||
eina_lock_take(&_sysmon_lock);
|
eina_lock_take(&_sysmon_lock);
|
||||||
if (_eina_debug_cpu_active == -1) break;
|
if (_eina_debug_cpu_active == -1)
|
||||||
|
{
|
||||||
|
_eina_debug_cpu_active = 0;
|
||||||
|
eina_lock_release(&_sysmon_lock);
|
||||||
|
break;
|
||||||
|
}
|
||||||
eina_lock_release(&_sysmon_lock);
|
eina_lock_release(&_sysmon_lock);
|
||||||
}
|
}
|
||||||
_eina_debug_cpu_active = 0;
|
|
||||||
eina_lock_release(&_sysmon_lock);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static Eina_Bool
|
static Eina_Bool
|
||||||
|
|
Loading…
Reference in New Issue