diff options
| author | Giel van Schijndel <[email protected]> | 2012-06-24 17:03:57 +0200 |
|---|---|---|
| committer | Giel van Schijndel <[email protected]> | 2012-07-17 01:50:35 +0200 |
| commit | 96931d6f78ccc21ec38cd4655b1a250893a6f252 (patch) | |
| tree | a7bd6c9bb2d0a9378b6db894b470126d0c2b4221 /src/util.h | |
| parent | Merge pull request #1592 from Diapolo/Qt_WindowTitle (diff) | |
| download | discoin-96931d6f78ccc21ec38cd4655b1a250893a6f252.tar.xz discoin-96931d6f78ccc21ec38cd4655b1a250893a6f252.zip | |
Give threads a recognisable name to aid in debugging
NOTE: These thread names are visible in gdb when using 'info threads'.
Additionally both 'top' and 'ps' show these names *unless* told to
display the command-line instead of task name.
Signed-off-by: Giel van Schijndel <[email protected]>
Diffstat (limited to 'src/util.h')
| -rw-r--r-- | src/util.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/util.h b/src/util.h index 7fe204c0d..4423d2ff5 100644 --- a/src/util.h +++ b/src/util.h @@ -621,9 +621,7 @@ inline void ExitThread(size_t nExitCode) } #endif - - - +void RenameThread(const char* name); inline uint32_t ByteReverse(uint32_t value) { |