title: How to encapsulate a thread?
body: <p>I got a program with some threads created with boost::thread because it is a manager to start and control multiple gameservers for my game project.</p>
  
  <p>The manager consists of one single application and my question is the following:</p>
  
  <p>How to encapsulate a thread this way that if it crashes for example during a NULL Pointer exception or similar that the thread itself ends but not the whole program is crashed afterwards.</p>