Skip to content

Thread safety

The code does not ensure that the shared variables (e.g. "inside", "finished", "ready") are thread-safe. This could lead to race conditions and incorrect results.