task: Use SetThreadDescription Win32 API for setting thread name
authorSeungha Yang <seungha@centricular.com>
Thu, 14 Jan 2021 16:16:34 +0000 (01:16 +0900)
committerGStreamer Merge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Thu, 14 Jan 2021 18:33:42 +0000 (18:33 +0000)
commitf0d003205cb21d5285bee596ffe1d7a90d326e7e
treeb72b8a18d11f8b1db01782102dbe94bd0dd620b6
parent3a380558bdc0597b2f5be65595cd2b706969562c
task: Use SetThreadDescription Win32 API for setting thread name

Since Windows 10 1607, we can make use of SetThreadDescription() API
for setting thread name. Unlike previously used exception based
method, this API will preserve configured thread name on dump file.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/735>
gst/gsttask.c