示例#1
0
/** Find a Y histogram in the MRU
 *
 * @param thread_num :: number of the thread in which this is run
 * @param index :: index of the data to return
 * @return pointer to the TypeWithMarker that has the data; NULL if not found.
 */
Kernel::cow_ptr<HistogramData::HistogramE>
EventWorkspaceMRU::findE(size_t thread_num, const EventList *index) {
  Poco::ScopedReadRWLock _lock(m_changeMruListsMutexE);
  auto result = m_bufferedDataE[thread_num]->find(
      reinterpret_cast<const std::uintptr_t>(index));
  if (result)
    return result->m_data;
  return EType(nullptr);
}
示例#2
0
 CCharAnimTime(CInputStream& in) : x0_time(in.readFloatBig()), x4_type(EType(in.readUint32Big())) {}