mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-26 18:42:41 +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:
@@ -70,6 +70,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);
|
||||
@@ -111,11 +117,12 @@ protected:
|
||||
|
||||
Runnable* pRunnableTarget;
|
||||
AutoPtr<CallbackData> pCallbackTarget;
|
||||
int task;
|
||||
int prio;
|
||||
int osPrio;
|
||||
Event done;
|
||||
int stackSize;
|
||||
int task;
|
||||
int prio;
|
||||
int osPrio;
|
||||
Event done;
|
||||
int stackSize;
|
||||
std::string name;
|
||||
};
|
||||
|
||||
private:
|
||||
|
||||
Reference in New Issue
Block a user