tests: systemclock: Stop all stress threads before joining them
authorJan Alexander Steffens (heftig) <jan.steffens@ltnglobal.com>
Thu, 14 Jan 2021 14:50:05 +0000 (15:50 +0100)
committerJan Alexander Steffens (heftig) <jan.steffens@ltnglobal.com>
Thu, 14 Jan 2021 14:50:05 +0000 (15:50 +0100)
commit3a380558bdc0597b2f5be65595cd2b706969562c
treec4eaf475a81381b9fe610e20be1400e39a525751
parentb95941db55584df5c4d5e547ee5e323336d1ea18
tests: systemclock: Stop all stress threads before joining them

This reduces the chance of the main thread getting starved while trying
to shut down the test, potentially causing a timeout.

Even on an idle 96-processor system this reduces the duration of the
systemclock tests from ~8s to ~3s.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/734>
tests/check/gst/gstsystemclock.c