enh: set thread name for windows
This commit is contained in:
parent
3d32d55ea5
commit
135c411bd5
|
@ -225,7 +225,10 @@ void syslog(int unused, const char *format, ...);
|
||||||
#endif
|
#endif
|
||||||
#else
|
#else
|
||||||
// Windows
|
// Windows
|
||||||
#define setThreadName(name)
|
#define setThreadName(name) \
|
||||||
|
do { \
|
||||||
|
pthread_setname_np(taosThreadSelf(), (name)); \
|
||||||
|
} while (0)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(_WIN32)
|
#if defined(_WIN32)
|
||||||
|
|
Loading…
Reference in New Issue