mirror of
https://gitee.com/openharmony/hiviewdfx_hitrace
synced 2024-11-27 01:50:45 +00:00
!475 fix: 死锁现象修复后,提交测试
Merge pull request !475 from jiangwei_30063790/master
This commit is contained in:
commit
3fc00be626
@ -1429,7 +1429,6 @@ TraceErrorCode OpenTrace(const std::string &args)
|
||||
|
||||
TraceRetInfo DumpTrace()
|
||||
{
|
||||
std::lock_guard<std::mutex> lock(g_traceMutex);
|
||||
HILOG_DEBUG(LOG_CORE, "DumpTrace start.");
|
||||
TraceRetInfo ret;
|
||||
if (g_traceMode != SERVICE_MODE) {
|
||||
@ -1443,7 +1442,7 @@ TraceRetInfo DumpTrace()
|
||||
ret.errorCode = TRACE_IS_OCCUPIED;
|
||||
return ret;
|
||||
}
|
||||
|
||||
std::lock_guard<std::mutex> lock(g_traceMutex);
|
||||
ret.errorCode = DumpTraceInner(ret.outputFiles);
|
||||
HILOG_DEBUG(LOG_CORE, "DumpTrace done.");
|
||||
return ret;
|
||||
|
Loading…
Reference in New Issue
Block a user