I am writing something without libc and I need a mutex for synchronization (I used #![cfg_attr(not(test), no_std)]). Here is my code:
libc
#![cfg_attr(not(test), no_std)]