cbm-fles / flesnet

CBM FLES Timeslice Building
7 stars 22 forks source link

Add thread names to ease debugging #93

Closed cuveland closed 3 years ago

cuveland commented 3 years ago

Under Linux, thread names can be set using pthread_setname_np(). This PR adds support for setting the thread names in the flesnet application, which should ease debugging. The names can be seen, e.g., in gdb (info threads) and in htop (Display options -> Show custom thread names).

Other systems such as macOS have slightly different mechanisms and are not covered or affected by this change.

oTTer-Chief commented 3 years ago

Test with ZMQ transport works as expected