ETLCPP / etl

Embedded Template Library
https://www.etlcpp.com
MIT License
2.04k stars 371 forks source link

feature request: allow use of etl::mutex on non-OS targets #880

Open KammutierSpule opened 2 months ago

KammutierSpule commented 2 months ago

I would like to include etl/mutex.h and etl:mutex but to be used on non-OS (or custom) targets It may be allowed to include a user include file or some other way that can result on a "compile to nothing" or user implementation.

enbyted commented 2 months ago

@KammutierSpule

Having an implementation of mutex that does nothing in the library could be quite dangerous as it would open the possibility of compiling code that expects a working mutex with a null implementation without any warning.

What I do is dependent on the usecase, but typically I:

Hopefully that's helpful to you.

// I'm not not related to ETL, just random user