aboutsummaryrefslogtreecommitdiff
path: root/src/entity.cpp
diff options
context:
space:
mode:
authorgingerBill <gingerBill@users.noreply.github.com>2026-02-02 10:53:18 +0000
committergingerBill <gingerBill@users.noreply.github.com>2026-02-02 10:53:18 +0000
commit74347f3069972a7580c0bf2d4f3b1b65eb940cc5 (patch)
tree49502e321a8074a43ed550e89bd0f4c200d9315e /src/entity.cpp
parentd086a16f64d7cfd501cf8f1ebe5385c6afc23d3a (diff)
Make `Entity.code_gen_*` atomic
Diffstat (limited to 'src/entity.cpp')
-rw-r--r--src/entity.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/entity.cpp b/src/entity.cpp
index 55aca8069..97c908fea 100644
--- a/src/entity.cpp
+++ b/src/entity.cpp
@@ -181,11 +181,11 @@ struct Entity {
Entity * aliased_of;
union {
- struct lbModule *code_gen_module;
+ std::atomic<struct lbModule *> code_gen_module;
struct cgModule *cg_module;
};
union {
- struct lbProcedure *code_gen_procedure;
+ std::atomic<struct lbProcedure *> code_gen_procedure;
struct cgProcedure *cg_procedure;
};