title: C++ / Windows: HeapAlloc() for contention-free per-thread heaps
body: <p>I have a multithreaded application using <code>boost::thread</code>. For performance reasons, I'd like each thread to have an independent heap.</p>
  
  <p>I can create a heap using <code>HeapCreate()</code> but am unclear how to hook this up to the CRT library so that <code>new</code> and <code>malloc</code> allocate memory on the created heap.  How can this be done?</p>