Make optional use of SetThreadDescription in osl_setThreadName
commita5eba5fef0b6eade2c0a39f8e8fc90bdeb08dff2
authorMike Kaganski <mike.kaganski@collabora.com>
Wed, 2 Jun 2021 09:05:21 +0000 (2 11:05 +0200)
committerMike Kaganski <mike.kaganski@collabora.com>
Wed, 2 Jun 2021 13:27:09 +0000 (2 15:27 +0200)
tree2af4e1487840b74928cf88dfcaff53b121f0c591
parentf1be88688cf1ca4ab14f93ae1a75e0331a6577cb
Make optional use of SetThreadDescription in osl_setThreadName

... so that thread name could appear in crash dumps, and be
potentially available for logging on Windows 10 version 1607
and later.

Change-Id: I176ca1fce57e0532a226f85836b3889a8ffb2984
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/116462
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
sal/osl/w32/thread.cxx