90 |
RegionInfo[*i].refCount++; |
RegionInfo[*i].refCount++; |
91 |
SampleRefCount[(*i)->pSample]++; |
SampleRefCount[(*i)->pSample]++; |
92 |
} |
} |
93 |
HandBack(pResource, pConsumer, true); |
this->HandBack(pResource, pConsumer, true); |
94 |
RegionInfoMutex.Unlock(); |
RegionInfoMutex.Unlock(); |
95 |
} |
} |
96 |
|
|
126 |
|
|
127 |
virtual void SetMode(const InstrumentManager::instrument_id_t& ID, InstrumentManager::mode_t Mode) { |
virtual void SetMode(const InstrumentManager::instrument_id_t& ID, InstrumentManager::mode_t Mode) { |
128 |
dmsg(2,("InstrumentManagerBase: setting mode for %s (Index=%d) to %d\n",ID.FileName.c_str(),ID.Index,Mode)); |
dmsg(2,("InstrumentManagerBase: setting mode for %s (Index=%d) to %d\n",ID.FileName.c_str(),ID.Index,Mode)); |
129 |
SetAvailabilityMode(ID, static_cast<typename ResourceManager<instrument_id_t, I>::mode_t>(Mode)); |
this->SetAvailabilityMode(ID, static_cast<typename ResourceManager<instrument_id_t, I>::mode_t>(Mode)); |
130 |
} |
} |
131 |
|
|
132 |
protected: |
protected: |
241 |
|
|
242 |
if (pEntry->MaxSamplesPerCycle < maxSamplesPerCycle) { |
if (pEntry->MaxSamplesPerCycle < maxSamplesPerCycle) { |
243 |
dmsg(1,("Completely reloading instrument due to insufficient precached samples ...\n")); |
dmsg(1,("Completely reloading instrument due to insufficient precached samples ...\n")); |
244 |
Update(pResource, pConsumer); |
this->Update(pResource, pConsumer); |
245 |
} |
} |
246 |
} |
} |
247 |
}; |
}; |