Commit graph

4 commits

Author SHA1 Message Date
d9089c4348 mutex: comments and name clarity 2024-11-19 15:28:19 -08:00
dc89fc4ce2 mutex(fix): prevent race condition (part 2)
In addition to the previous commit, this commit makes threads need to
wait for the thread manager to say it took the mutex from them before
they can ask for it again.
2024-11-19 15:27:51 -08:00
d9b9d82c79 mutex(fix): prevents a potential race condition where threads could
skip waiting for the manager to give them the mutex

The solution was to remove write access from threads to the
manager_took_mutex variable
2024-11-19 13:48:43 -08:00
77861709f8 initial commit 2024-11-19 06:37:12 -08:00