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
|
||||
#else
|
||||
// Windows
|
||||
#define setThreadName(name)
|
||||
#define setThreadName(name) \
|
||||
do { \
|
||||
pthread_setname_np(taosThreadSelf(), (name)); \
|
||||
} while (0)
|
||||
#endif
|
||||
|
||||
#if defined(_WIN32)
|
||||
|
|
Loading…
Reference in New Issue