fix: Avoiding races when modifying queue and Tag data
Related-To: NEO-8196 Signed-off-by: Andrzej Koska <andrzej.koska@intel.com>
This commit is contained in:
parent
7e7eea9995
commit
c4a24d8f31
|
@ -172,6 +172,7 @@ bool CommandQueueHw<Family>::waitForTimestamps(Range<CopyEngineState> copyEngine
|
|||
bool waited = false;
|
||||
|
||||
if (isWaitForTimestampsEnabled()) {
|
||||
TakeOwnershipWrapper<CommandQueue> queueOwnership(*this);
|
||||
waited = waitForTimestampsWithinContainer<TSPacketType>(mainContainer, getGpgpuCommandStreamReceiver(), status);
|
||||
|
||||
if (waited) {
|
||||
|
|
|
@ -15,6 +15,7 @@ template <typename TagType>
|
|||
TagAllocator<TagType>::TagAllocator(const RootDeviceIndicesContainer &rootDeviceIndices, MemoryManager *memMngr, size_t tagCount, size_t tagAlignment,
|
||||
size_t tagSize, bool doNotReleaseNodes, DeviceBitfield deviceBitfield)
|
||||
: TagAllocatorBase(rootDeviceIndices, memMngr, tagCount, tagAlignment, tagSize, doNotReleaseNodes, deviceBitfield) {
|
||||
std::unique_lock<std::mutex> lock(allocatorMutex);
|
||||
|
||||
populateFreeTags();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue