mirror of
https://github.com/arehnman/yttrium-virtio-gpu.git
synced 2026-10-31 02:05:04 +00:00
netkvm-prot: fix stopped state indication
Indicate stopped state only after the thread is finished. Otherwise the structures in the memory might be unpredictably modified. Signed-off-by: Yuri Benditovich <[email protected]>
This commit is contained in:
1 parent
9f1e4e6be3
commit
32ea737009
1 file changed
+4
@@ -704,6 +704,10 @@ protected:
|
||||
{
|
||||
StopThread();
|
||||
m_ThreadEvent.Set();
|
||||
while (IsThreadRunning())
|
||||
{
|
||||
Sleep(50);
|
||||
}
|
||||
return true;
|
||||
}
|
||||
virtual void ThreadProc()
|
||||
|
||||
Reference in new issue
Block a user