mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-24 22:24:44 +02:00
Set thread names for the BufferedStream thread procs.
This commit is contained in:
parent
9506b6710e
commit
e5b3a59aa3
@ -60,6 +60,8 @@ void BufferedStream::ReadThreadProc(void)
|
|||||||
{
|
{
|
||||||
char buffer[512];
|
char buffer[512];
|
||||||
|
|
||||||
|
Utility::SetThreadName("BufS Read");
|
||||||
|
|
||||||
try {
|
try {
|
||||||
for (;;) {
|
for (;;) {
|
||||||
size_t rc = m_InnerStream->Read(buffer, sizeof(buffer));
|
size_t rc = m_InnerStream->Read(buffer, sizeof(buffer));
|
||||||
@ -97,6 +99,8 @@ void BufferedStream::WriteThreadProc(void)
|
|||||||
{
|
{
|
||||||
char buffer[512];
|
char buffer[512];
|
||||||
|
|
||||||
|
Utility::SetThreadName("BufS Write");
|
||||||
|
|
||||||
try {
|
try {
|
||||||
for (;;) {
|
for (;;) {
|
||||||
size_t rc;
|
size_t rc;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user