Skip to content

Commit

Permalink
Fix deadlock
Browse files Browse the repository at this point in the history
  • Loading branch information
KinoMyu committed Sep 23, 2019
1 parent dc45dbe commit 16a7246
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion HCADecodeService.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,6 @@ void HCADecodeService::Main_Thread()
{
datasem.wait();

std::unique_lock<std::mutex> lck(workingmtx);
if (shutdown)
{
break;
Expand All @@ -184,6 +183,7 @@ void HCADecodeService::Main_Thread()

workingrequest = nullptr;

std::unique_lock<std::mutex> lck(workingmtx);
workingcv.notify_all();
}

Expand Down

0 comments on commit 16a7246

Please sign in to comment.