title: How can I set a thread's CPU affinity in Qt5?
body: <p>Working with threads in <strong>Qt5</strong>, how can I set a single thread's <a href="https://en.wikipedia.org/wiki/Processor_affinity" rel="nofollow noreferrer">CPU affinity</a>?</p>
  
  <p>I want to specify a mask of available CPU cores that the thread may run under.</p>
  
  <p>In other words, what is the Qt5 equivalent to Posix thread's <a href="http://man7.org/linux/man-pages/man3/pthread_setaffinity_np.3.html" rel="nofollow noreferrer"><code>pthread_setaffinity_np()</code></a> ? </p>
  
  <p>Can I do this for threads managed by <code>QThreadPool</code>?</p>