]> granicus.if.org Git - icinga2/commitdiff
Set thread names for the BufferedStream thread procs.
authorGunnar Beutner <gunnar.beutner@netways.de>
Fri, 18 Oct 2013 09:46:19 +0000 (11:46 +0200)
committerGunnar Beutner <gunnar.beutner@netways.de>
Fri, 18 Oct 2013 09:46:19 +0000 (11:46 +0200)
lib/base/bufferedstream.cpp

index 682569cc52995c1915de7908f8546248d724a19c..7ab51dd5bb50f796e0279a57dac0d1956cecbb65 100644 (file)
@@ -60,6 +60,8 @@ void BufferedStream::ReadThreadProc(void)
 {
        char buffer[512];
 
+       Utility::SetThreadName("BufS Read");
+
        try {
                for (;;) {
                        size_t rc = m_InnerStream->Read(buffer, sizeof(buffer));
@@ -97,6 +99,8 @@ void BufferedStream::WriteThreadProc(void)
 {
        char buffer[512];
 
+       Utility::SetThreadName("BufS Write");
+
        try {
                for (;;) {
                        size_t rc;