Thread safe drivers
Posted: Thu Nov 29, 2012 12:49 pm
Is it written somewhere in documentation which HAL drivers are thread safe and which are not thread safe?
I have found in ADC HAL documentation such an information - it's written to be fast so it's not thread safe. But for the rest of the HAL drivers I can't found information in documentation. Does it means that all they are thread safe? I think PAL driver is also not thread safe or I'm wrong?
I understand that thread safe is a opposition of performance, so there is the reason to make a compromise with this. But maybe we should have clearly marked/noted which parts and functions of ChibiOS are not thread safe and take a care when work with them.
Excuse me if such an information is included or this question is discussed before. In this case - forward me to this topic or documentation, please.
Best Regards
Ceco
I have found in ADC HAL documentation such an information - it's written to be fast so it's not thread safe. But for the rest of the HAL drivers I can't found information in documentation. Does it means that all they are thread safe? I think PAL driver is also not thread safe or I'm wrong?
I understand that thread safe is a opposition of performance, so there is the reason to make a compromise with this. But maybe we should have clearly marked/noted which parts and functions of ChibiOS are not thread safe and take a care when work with them.
Excuse me if such an information is included or this question is discussed before. In this case - forward me to this topic or documentation, please.
Best Regards
Ceco