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