From cf8bda731466cdb6acce27fb46631a8b37e8717c Mon Sep 17 00:00:00 2001 From: Maschell Date: Wed, 1 Aug 2018 20:48:36 +0200 Subject: [PATCH] Add setThreadPriority method to TCPServer --- include/utils/TCPServer.hpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/include/utils/TCPServer.hpp b/include/utils/TCPServer.hpp index a0fff84..8dbcf51 100644 --- a/include/utils/TCPServer.hpp +++ b/include/utils/TCPServer.hpp @@ -31,6 +31,12 @@ protected: return sockfd; } + void setThreadPriority(int32_t priority) { + if(pThread != NULL){ + pThread->setThreadPriority(priority); + } + } + struct sockaddr_in getSockAddr() { return sock_addr; }