mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-27 11:06:50 +01:00
don't throw if thread cpu affinity is not supported
This commit is contained in:
@@ -201,8 +201,6 @@ void ThreadImpl::setAffinityImpl(int cpu)
|
|||||||
if (pthread_setaffinity_np(_pData->thread, &cpuset) != 0)
|
if (pthread_setaffinity_np(_pData->thread, &cpuset) != 0)
|
||||||
throw SystemException("Failed to set affinity");
|
throw SystemException("Failed to set affinity");
|
||||||
#endif
|
#endif
|
||||||
#else
|
|
||||||
throw Poco::NotImplementedException("Thread affinity not supported on this system");
|
|
||||||
#endif
|
#endif
|
||||||
#endif // defined unix & !defined mac os x
|
#endif // defined unix & !defined mac os x
|
||||||
|
|
||||||
@@ -247,8 +245,6 @@ int ThreadImpl::getAffinityImpl() const
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#else
|
|
||||||
throw Poco::NotImplementedException("Thread affinity not supported on this system");
|
|
||||||
#endif
|
#endif
|
||||||
#endif // defined unix & !defined mac os x
|
#endif // defined unix & !defined mac os x
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user