Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make Multithreading Good #2

Open
Bixkitts opened this issue Dec 12, 2024 · 0 comments
Open

Make Multithreading Good #2

Bixkitts opened this issue Dec 12, 2024 · 0 comments
Labels
c This involves writing and/or reading C code

Comments

@Bixkitts
Copy link
Owner

Bixkitts commented Dec 12, 2024

Multithreading is currently a bit hectic, and might not scale well.
I just kind of threw in mutex locks and atomics left and right and prayed it would work and it needs a little more structure.

An idea might be to tie concurrent access to resources to the game turn order
instead of mutex locking data structures and modifying atomic counters...
See issue #4

But turn order isn't implemented yet!

@Bixkitts Bixkitts added the c This involves writing and/or reading C code label Dec 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c This involves writing and/or reading C code
Projects
None yet
Development

No branches or pull requests

1 participant