Skip to content

Commit 026ea3b

Browse files
v-einhoffstadt
authored andcommitted
fix: generate_uuid() now uses an atomic for thread safety.
1 parent 0e0b4f7 commit 026ea3b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/mvContext.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ struct mvContext
115115
double time = 0.0; // total time since starting
116116
int frame = 0; // frame count
117117
int framerate = 0; // frame rate
118-
mvUUID id = MV_START_UUID; // current ID
118+
std::atomic<mvUUID> id = MV_START_UUID; // current ID
119119
mvViewport* viewport = nullptr;
120120
mvGraphics graphics;
121121
bool resetTheme = false;

0 commit comments

Comments
 (0)