mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-22 07:31:57 +00:00
Remove DEC true unix
This commit is contained in:
parent
cd7f6b7f0e
commit
bc1f5f8464
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user