mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2025-02-13 17:20:09 +00:00
c/multi: Destroy threads instead of only stopping them
This commit is contained in:
parent
aac68971c4
commit
fee6809bc2
src/xrt/compositor/multi
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue