PR #2049 fixes the "embedded" part of build process to ensure that all libraries are properly loaded, including the "threads" library. We may at some point want to make the dependency on threads optional. It should be possible to build a picoquic library that does not depend on threads. The dependency is mostly in the "socket loop" code, and there is already an option for application to plug in function pointers for their own library. There are definitely platforms (e.g., ESP32) for which we do not want to use threads.
PR #2049 fixes the "embedded" part of build process to ensure that all libraries are properly loaded, including the "threads" library. We may at some point want to make the dependency on threads optional. It should be possible to build a picoquic library that does not depend on threads. The dependency is mostly in the "socket loop" code, and there is already an option for application to plug in function pointers for their own library. There are definitely platforms (e.g., ESP32) for which we do not want to use threads.