forked from Public-Mirror/Textractor
bugfix deadlock
This commit is contained in:
parent
6a25a41d79
commit
8342850bb7
@ -9,10 +9,10 @@ TextThread::TextThread(ThreadParam tp, DWORD status) : tp(tp), status(status) {}
|
||||
|
||||
TextThread::~TextThread()
|
||||
{
|
||||
LOCK(ttMutex);
|
||||
SetEvent(deletionEvent);
|
||||
flushThread.join();
|
||||
CloseHandle(deletionEvent);
|
||||
LOCK(ttMutex);
|
||||
}
|
||||
|
||||
std::wstring TextThread::GetStore()
|
||||
|
Loading…
x
Reference in New Issue
Block a user