A stress test to detect data races and other threading issues.
This test is designed to be run with a thread sanitizer tool, such as Valgrind's Helgrind or GCC/Clang's -fsanitize=thread (TSan). Its purpose is to verify that the infix library's use of thread-local storage (TLS) for error handling and other contexts is correct and free of data races.
The test spawns multiple threads, and each thread independently runs a tight loop of creating, using, and destroying infix trampolines.
A "pass" for this test is not just that the program completes successfully, but that the thread sanitizer tool reports zero data races or other synchronization errors. This is critical for ensuring that infix is safe to use in multi-threaded applications.