Commit graph

3 commits

Author SHA1 Message Date
1343caaee6 mutex(fix): fixed race condition (part 2)
In addition to the previous commit, this commit makes threads wait for
the thread manager to say it took the mutex from them before they can
ask for it again.
2024-11-19 15:08:22 -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