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: <gstreamer/gstreamer!741>
36 jobs for !741 with backport-mr-735-into-1.18-win32-thread-name in 52 minutes and 17 seconds (queued for 13 seconds)
detached
Status Job ID Name Coverage
  Build Docker
passed #6996888
alpine amd64 manifest builder docker

00:00:14

passed #6996886
android docker

00:00:13

passed #6996885
cerbero fedora amd64 docker

00:00:14

passed #6996883
fedora amd64 docker

00:00:14

passed #6996890
gst-indent amd64 docker

00:00:33

 
  Preparation
passed #6996892
gst indent

00:00:08

passed #6996891
manifest

00:00:16

 
  Build
passed #6996910
gstreamer
build cerbero cross-android universal

00:13:03

passed #6996918
gst-ios-14.3
build cerbero cross-ios universal

00:25:53

passed #6996912
gstreamer
build cerbero cross win32

00:07:43

passed #6996914
gstreamer
build cerbero cross win64

00:07:36

passed #6996908
gstreamer
build cerbero fedora x86_64

00:09:54

passed #6996916
gst-macos-11.1
build cerbero macos x86_64

00:12:52

passed #6996899
build clang fedora x86_64

00:05:08

manual #6996905
docker windows 1809 allowed to fail manual
build msys2
passed #6996894
build nodebug fedora x86_64

00:10:52

passed #6996895
build static fedora x86_64

00:10:52

passed #6996897
build static nodebug fedora x86_64

00:07:39

passed #6998581
docker windows 1809
build vs2017 amd64

00:08:31

passed #6996903
1809 docker windows
build vs2017 x86

00:13:41

failed #6996900
docker windows 1809
build vs2017 amd64

00:13:19

 
  Test
passed #7002927
gstreamer
check fedora

00:04:52

passed #6996923
gstreamer
integration testsuites fedora 1/4

00:14:03

passed #6996924
gstreamer
integration testsuites fedora 2/4

00:14:23

passed #6996925
gstreamer
integration testsuites fedora 3/4

00:13:47

passed #6996926
gstreamer
integration testsuites fedora 4/4

00:16:07

passed #6996931
gstreamer
valgrind bad

00:07:16

passed #6996928
gstreamer
valgrind base

00:09:48

passed #6996927
gstreamer
valgrind core

00:08:40

passed #6996932
gstreamer
valgrind ges

00:07:12

passed #6996929
gstreamer
valgrind good

00:10:32

passed #6996930
gstreamer
valgrind ugly

00:05:46

failed #6996921
gstreamer
check fedora

00:08:27

 
  Integrate
passed #6996933
cross-android universal examples

00:06:33

passed #6996935
gst-ios-14.3
cross-ios universal examples

00:03:19

passed #6996934
documentation

00:13:34