Skip to content

Commit 5ae47e2

Browse files
Revert "sizeUsed doesn't have to be atomic."
This reverts commit e6daa20. Source: e6daa20 Signed-off-by: Artur Harasimiuk <artur.harasimiuk@intel.com>
1 parent a8a4648 commit 5ae47e2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

shared/source/command_stream/linear_stream.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ class LinearStream {
5050
}
5151

5252
protected:
53-
size_t sizeUsed = 0;
53+
std::atomic<size_t> sizeUsed{0};
5454
size_t maxAvailableSpace{0};
5555
void *buffer{nullptr};
5656
GraphicsAllocation *graphicsAllocation{nullptr};

0 commit comments

Comments
 (0)