message: comment out multi-threaded parsing of variable index in BP4 as it is not safe as described in
diff: @@ -325,7 +325,10 @@ void BP4Deserializer::ParseVariablesIndexPerStep(const BufferSTL &bufferSTL,
  const size_t startPosition = position;
  size_t localPosition = 0;
  - if (m_Threads == 1)
  + /* FIXME: multi-threaded processing does not work here
  + * because DefineVariable may be called from several threads
  + */
  + /*if (m_Threads == 1)*/
  {
  while (localPosition < length)
  {
  @@ -339,7 +342,7 @@ void BP4Deserializer::ParseVariablesIndexPerStep(const BufferSTL &bufferSTL,
  }
  return;
  }
  -
  + /*
  // threads for reading Variables
  std::vector<std::future<void>> asyncs(m_Threads);
  std::vector<size_t> asyncPositions(m_Threads);
  @@ -366,8 +369,8 @@ void BP4Deserializer::ParseVariablesIndexPerStep(const BufferSTL &bufferSTL,
  if (localPosition <= length)
  {
  asyncs[t] =
  - std::async(std::launch::async, lf_ReadElementIndexPerStep,
  - std::ref(engine), std::ref(buffer),
  + std::async(std::launch::async,
  + lf_ReadElementIndexPerStep, std::ref(engine), std::ref(buffer),
  asyncPositions[t], step);
  }
  }
  @@ -381,6 +384,7 @@ void BP4Deserializer::ParseVariablesIndexPerStep(const BufferSTL &bufferSTL,
  async.wait();
  }
  }
  + */
  }
  /* void BP4Deserializer::ParseVariablesIndex(const BufferSTL &bufferSTL,
  