Remove DEC true unix

This commit is contained in:
Robert Schulze 2023-02-14 22:11:17 +00:00
parent cd7f6b7f0e
commit bc1f5f8464
No known key found for this signature in database
GPG Key ID: 26703B55FB13728A

View File

@ -141,8 +141,6 @@ int ThreadImpl::getMinOSPriorityImpl(int policy)
{
#if defined(POCO_THREAD_PRIORITY_MIN)
return POCO_THREAD_PRIORITY_MIN;
#elif defined(__digital__)
return PRI_OTHER_MIN;
#else
return sched_get_priority_min(policy);
#endif
@ -153,8 +151,6 @@ int ThreadImpl::getMaxOSPriorityImpl(int policy)
{
#if defined(POCO_THREAD_PRIORITY_MAX)
return POCO_THREAD_PRIORITY_MAX;
#elif defined(__digital__)
return PRI_OTHER_MAX;
#else
return sched_get_priority_max(policy);
#endif
@ -268,13 +264,7 @@ ThreadImpl::TIDImpl ThreadImpl::currentTidImpl()
void ThreadImpl::sleepImpl(long milliseconds)
{
#if defined(__digital__)
// This is specific to DECThreads
struct timespec interval;
interval.tv_sec = milliseconds / 1000;
interval.tv_nsec = (milliseconds % 1000)*1000000;
pthread_delay_np(&interval);
#elif POCO_OS == POCO_OS_LINUX || POCO_OS == POCO_OS_ANDROID || POCO_OS == POCO_OS_MAC_OS_X || POCO_OS == POCO_OS_QNX || POCO_OS == POCO_OS_VXWORKS
#if POCO_OS == POCO_OS_LINUX || POCO_OS == POCO_OS_ANDROID || POCO_OS == POCO_OS_MAC_OS_X || POCO_OS == POCO_OS_QNX || POCO_OS == POCO_OS_VXWORKS
Poco::Timespan remainingTime(1000*Poco::Timespan::TimeDiff(milliseconds));
int rc;
do