From bc1f5f8464d0075f907bac64a499105c48b89683 Mon Sep 17 00:00:00 2001 From: Robert Schulze Date: Tue, 14 Feb 2023 22:11:17 +0000 Subject: [PATCH] Remove DEC true unix --- base/poco/Foundation/src/Thread_POSIX.cpp | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/base/poco/Foundation/src/Thread_POSIX.cpp b/base/poco/Foundation/src/Thread_POSIX.cpp index ac3eefdeb70..7b1efe7a191 100644 --- a/base/poco/Foundation/src/Thread_POSIX.cpp +++ b/base/poco/Foundation/src/Thread_POSIX.cpp @@ -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