On 1/8/26 18:03, Daniel P. Berrangé wrote:
+static __thread char namebuf[PTHREAD_MAX_NAMELEN_NP];

... you can instead of the previous patch, add a constructor here that just sets namebuf to "main" with strcpy.

For Windows on the other hand it should be okay to call SetThreadDescription if available.

Paolo

Reply via email to