c/multi: Destroy threads instead of only stopping them

This commit is contained in:
Jakob Bornecrantz 2022-05-20 18:35:28 +01:00
parent aac68971c4
commit fee6809bc2
2 changed files with 4 additions and 4 deletions

View file

@ -807,8 +807,8 @@ multi_compositor_destroy(struct xrt_compositor *xc)
drain_events(mc);
// Stop the wait thread.
os_thread_helper_stop(&mc->wait_thread.oth);
// Destroy the wait thread, destroy also stops the thread.
os_thread_helper_destroy(&mc->wait_thread.oth);
// We are now off the rendering list, clear slots for any swapchains.
slot_clear(&mc->progress);

View file

@ -503,8 +503,8 @@ system_compositor_destroy(struct xrt_system_compositor *xsc)
{
struct multi_system_compositor *msc = multi_system_compositor(xsc);
// Stop the render thread first.
os_thread_helper_stop(&msc->oth);
// Destroy the render thread first, destroy also stops the thread.
os_thread_helper_destroy(&msc->oth);
xrt_comp_native_destroy(&msc->xcn);