| 1 | #pragma once |
|---|---|
| 2 | #include <string> |
| 3 | |
| 4 | /** Sets the thread name (maximum length is 15 bytes), |
| 5 | * which will be visible in ps, gdb, /proc, |
| 6 | * for convenience of observation and debugging. |
| 7 | */ |
| 8 | void setThreadName(const char * name); |
| 9 | |
| 10 | std::string getThreadName(); |
| 11 |