mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-16 18:56:52 +02:00
ported 1.4.4 branch changes (needs build checks and test runs!)
This commit is contained in:
@@ -79,16 +79,21 @@ public:
|
||||
PRIO_HIGHEST_IMPL = THREAD_PRIORITY_HIGHEST
|
||||
};
|
||||
|
||||
enum Policy
|
||||
{
|
||||
POLICY_DEFAULT_IMPL = 0
|
||||
};
|
||||
|
||||
ThreadImpl();
|
||||
~ThreadImpl();
|
||||
|
||||
TIDImpl tidImpl() const;
|
||||
void setPriorityImpl(int prio);
|
||||
int getPriorityImpl() const;
|
||||
void setOSPriorityImpl(int prio);
|
||||
void setOSPriorityImpl(int prio, int policy = 0);
|
||||
int getOSPriorityImpl() const;
|
||||
static int getMinOSPriorityImpl();
|
||||
static int getMaxOSPriorityImpl();
|
||||
static int getMinOSPriorityImpl(int policy);
|
||||
static int getMaxOSPriorityImpl(int policy);
|
||||
void setStackSizeImpl(int size);
|
||||
int getStackSizeImpl() const;
|
||||
void startImpl(Runnable& target);
|
||||
@@ -170,13 +175,13 @@ inline int ThreadImpl::getOSPriorityImpl() const
|
||||
}
|
||||
|
||||
|
||||
inline int ThreadImpl::getMinOSPriorityImpl()
|
||||
inline int ThreadImpl::getMinOSPriorityImpl(int /* policy */)
|
||||
{
|
||||
return PRIO_LOWEST_IMPL;
|
||||
}
|
||||
|
||||
|
||||
inline int ThreadImpl::getMaxOSPriorityImpl()
|
||||
inline int ThreadImpl::getMaxOSPriorityImpl(int /* policy */)
|
||||
{
|
||||
return PRIO_HIGHEST_IMPL;
|
||||
}
|
||||
|
Reference in New Issue
Block a user