mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-04-01 13:20:29 +00:00
Check if threads are joinable before joining (issue with boost 1.52)
This commit is contained in:
parent
85ec80100c
commit
596c9b80a9
@ -989,8 +989,11 @@ void VideoState::deinit()
|
||||
this->audioq.cond.notify_one();
|
||||
this->videoq.cond.notify_one();
|
||||
|
||||
if (this->parse_thread.joinable())
|
||||
this->parse_thread.join();
|
||||
if (this->video_thread.joinable())
|
||||
this->video_thread.join();
|
||||
if (this->refresh_thread.joinable())
|
||||
this->refresh_thread.join();
|
||||
|
||||
if(this->audio_st)
|
||||
|
Loading…
x
Reference in New Issue
Block a user