808c511a7b
mutex: make light and heavy sleep
2024-11-26 00:14:58 -08:00
22a12e2995
mutex: use cerr for printing debug info
2024-11-25 22:43:23 -08:00
160d22ded8
mutex: more random sleeps
2024-11-25 22:41:22 -08:00
1043680b19
mutex: add random sleep intervals to test stability
2024-11-19 17:52:18 -08:00
4a2c82247e
mutex: add random sleep intervals to attempt to cause problems
2024-11-19 17:49:53 -08:00
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