ClickHouse/src/Common/setThreadName.h

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

11 lines
259 B
C++
Raw Normal View History

#pragma once
#include <string>
2017-05-07 20:25:26 +00:00
/** Sets the thread name (maximum length is 15 bytes),
* which will be visible in ps, gdb, /proc,
* for convenience of observation and debugging.
*/
void setThreadName(const char * name);
2021-11-13 23:39:19 +00:00
const char * getThreadName();