libhal-google / libhal

A collection of interfaces and abstractions for embedded peripherals and devices using modern C++
Apache License 2.0
86 stars 17 forks source link

Remove `BOOST_LEAF_NO_THREADS` from defines #694

Open kammce opened 1 year ago

kammce commented 1 year ago

This macro prevents libhal from using an RTOS as it prevents TLS (thread local storage) from being available with Boost.LEAF. With its removal, some other method of determining WHO defines this or other TLS macros in the libhal architecture.

kammce commented 1 year ago

Figuring out how to support non-threaded and threaded applications with libel is critical. Not figuring this out can prevent one or the other from being able to work. And it is unknown if the threaded and unthreaded ABIs can play nicely with each other.