Reduced a scope of the lock for AUB file stream

Related-To: NEO-2747

Change-Id: Ic164900f5898df35af74ccff9c31f8296dcf12fd
This commit is contained in:
Milczarek, Slawomir
2019-05-10 17:29:06 +02:00
committed by sys_ocldev
parent c34a9d737e
commit 972a79aaae
5 changed files with 48 additions and 12 deletions

View File

@@ -139,11 +139,11 @@ struct AubFileStream : public AubStream {
MOCKABLE_VIRTUAL void expectMemory(uint64_t physAddress, const void *memory, size_t size,
uint32_t addressSpace, uint32_t compareOperation);
MOCKABLE_VIRTUAL bool addComment(const char *message);
MOCKABLE_VIRTUAL std::unique_lock<std::recursive_mutex> lockStream();
MOCKABLE_VIRTUAL std::unique_lock<std::mutex> lockStream();
std::ofstream fileHandle;
std::string fileName;
std::recursive_mutex mutex;
std::mutex mutex;
};
template <int addressingBits>