Skip to content

Resolve "(core) Add api to set/get thread name and use it in worker related classes"

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.

image

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.

image

Related issue(s)

Closes #1260

Edited by Nicolas PAPIER

Merge request reports