mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-26 10:32:56 +01:00
set thread name (#3664)
* set thread name * fix dead lock * fix code style & return fake name * fix code style * fix code style Co-authored-by: Aleksandar Fabijanic <aleks-f@users.noreply.github.com>
This commit is contained in:
@@ -57,6 +57,12 @@ public:
|
||||
~ThreadImpl();
|
||||
|
||||
TIDImpl tidImpl() const;
|
||||
void setNameImpl(const std::string& threadName);
|
||||
std::string getNameImpl() const;
|
||||
std::string getOSThreadNameImpl();
|
||||
/// Returns the thread's name, expressed as an operating system
|
||||
/// specific name value. Return empty string if thread is not running.
|
||||
/// For test used only.
|
||||
void setPriorityImpl(int prio);
|
||||
int getPriorityImpl() const;
|
||||
void setOSPriorityImpl(int prio, int policy = 0);
|
||||
@@ -116,6 +122,7 @@ private:
|
||||
DWORD _threadId;
|
||||
int _prio;
|
||||
int _stackSize;
|
||||
std::string _name;
|
||||
|
||||
static CurrentThreadHolder _currentThreadHolder;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user