title: Can I use Qt thread ID to create unique cache for every thread?
body: <p>I want to cache lazy loaded objects that are not thread safe. Every thread should have it's own group of objects.</p>
  
  <p>My idea is to create <code>QMap&lt;int, MyObject&gt;</code> and access this map by thread ID that I get using <code>QThread::currentThreadId()</code>. The map itself would be protected by read/write mutex (that is, unique lock for writing, shared lock for reading). It will not be acessed often.</p>
  
  <p>I am not sure if it's really a good idea. Are there any problems with this approach?</p>