this question is completely unrelated to the one I just posted.
Are there any plans to integrate some primitives into GNU lightning so that atomic operations for multithreaded programs are supported? E.g. something along the lines of the C11 standard:
http://en.cppreference.com/w/c/atomic? (For CPU targets that do not support locking or atomic operations and multithreading, one could simply map these atomic instructions to the corresponding non-atomic ones.)