Skip to content

engine: make multiple things more threadsafe#157

Closed
RaphaelIT7 wants to merge 1 commit intoSource-Authors:masterfrom
RaphaelIT7:rmod-patch-2-split-7
Closed

engine: make multiple things more threadsafe#157
RaphaelIT7 wants to merge 1 commit intoSource-Authors:masterfrom
RaphaelIT7:rmod-patch-2-split-7

Conversation

@RaphaelIT7
Copy link
Contributor

@RaphaelIT7 RaphaelIT7 commented Nov 17, 2025

Depends on #160 for AUTO_LOCK_[WRITE/READ]

@dimhotepus dimhotepus force-pushed the master branch 5 times, most recently from 739a853 to a997975 Compare January 5, 2026 13:14
@dimhotepus dimhotepus force-pushed the master branch 2 times, most recently from a237f58 to 6699560 Compare January 26, 2026 13:57
@dimhotepus
Copy link
Member

I will close these thread-safety PRs for now.

The problem is they make entities more threadsafe, but not fully threadsafe.
I think we should follow another approach - these things should be const + member functions should be const.

If all is const, it means entities are immutable and can be used anywhere without syncronization overhead

If logically or by ThreadSanitizer we find a real bug, such PRs will be accepted.

@dimhotepus dimhotepus closed this Feb 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants