Resolve "(core) Add api to set/get thread name and use it in worker related classes"
requested to merge 1260-core-add-api-to-set-get-thread-name-and-use-it-in-worker-related-classes into dev
Description
Applications often use a lot of threads. To ease debugging, it is possible to assign a name to each thread. This can be extremely helpful for debugging multi-threaded applications, as it allows you to identify threads more easily in debuggers and logs.
Results
We should see worker name in the Visual Studio/VSCode debugger.
How to test it?
- Run the test named
core_ut.bat
in sight. It should succeed. - Run a program with a Qt GUI, such as tuto14_gui.bat in sight, attach a debugger (such as Visual Studio), pause the program, and you will see the Qt thread named QT_WORKER.
Related issue(s)
Closes #1260 (closed)
Edited by Nicolas PAPIER