mirror of
https://github.com/mudita/MuditaOS.git
synced 2026-04-19 14:40:57 -04:00
Add global __GTHREADS definition to trick standard library into thinking we have a proper threading support and that it should not used single threaded locking policies. As a result shared pointers will use atomic locking policy to synchronize access to reference counter. Add own version of gthr.h to override __gthread_active_p. Add cxa guard and release for globs. Looks like there was conflict when __GTHREADS was set so own version of atomicity.h is removed. Co-authored-by: Alek Rudnik <aleksander.rudnik@mudita.com> Co-authored-by: Lucjan Bryndza <lucjan.bryndza@mudita.com> Tested-by: Alek Rudnik <aleksander.rudnik@mudita.com> Tested-by: Tomasz Krosnowski <tomasz.krosnowski@mudita.com> Signed-off-by: Marcin Smoczyński <smoczynski.marcin@gmail.com>