message: return newthread
diff: @@ -88,6 +88,7 @@ bool fNoListen = false;
  bool fLogTimestamps = false;
  CMedianFilter<int64> vTimeOffsets(200,0);
  volatile bool fReopenDebugLog = false;
  +bool fCachedPath[2] = {false, false};
  CClientUIInterface uiInterface;
  // Init OpenSSL library multithreading support
  @@ -1563,3 +1564,14 @@ void RenameThread(const char* name)
  #endif
  }
  +bool NewThread(void(*pfn)(void*), void* parg)
  +{
  + try
  + {
  + boost::thread(pfn, parg); // thread detaches when out of scope
  + } catch(boost::thread_resource_error &e) {
  + printf("Error creating thread: %s\n", e.what());
  + return false;
  + }
  + return true;
  +}
  