We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bb4cf07 commit 76b97b4Copy full SHA for 76b97b4
unit_tests/mocks/linux/mock_drm_memory_manager.h
@@ -7,12 +7,13 @@
7
8
#include "runtime/os_interface/linux/drm_memory_manager.h"
9
#include "unit_tests/mocks/mock_host_ptr_manager.h"
10
+#include <atomic>
11
12
namespace OCLRT {
13
static off_t lseekReturn = 4096u;
-static int lseekCalledCount = 0;
14
-static int mmapMockCallCount = 0;
15
-static int munmapMockCallCount = 0;
+static std::atomic<int> lseekCalledCount(0);
+static std::atomic<int> mmapMockCallCount(0);
16
+static std::atomic<int> munmapMockCallCount(0);
17
18
off_t lseekMock(int fd, off_t offset, int whence) noexcept {
19
lseekCalledCount++;
0 commit comments