by lionkor · 2y ago · 0 comments
Excellent job on building this, and it's very readable and nice, otherwise!
I didn't find any file with that many line's yet, still searching but I doubt it exists unless it's in a different repository.
It looks like the mutex is theoretically sound.. unlocked before all returns, as long as there isn't an exception raised in between. I wonder what the parent comment's issue is.
This is solved in C usually with a goto to a cleanup routine, and avoiding early returns.