A replacement name for the users main
function, experimental.
If compiled with the above macro definition, the users main
function is silently renamed to p99_threads_main and a stub main
is provided. That stub function will not do much more than creating a separate thread running p99_threads_main as the user would expect it, and then exit the thread of that stub main
function.
The purpose is to ensure that all threads are C11 threads, and not only POSIX threads.
- Deprecated:
- The mechanism to launch this is fragile, avoid it if possible.