Closed jonas-schievink closed 4 years ago
This mirrors what the std Mutex does.
Mutex
If this turns out to be unsafe, at least there should be a comment explaining why only a &T is provided.
&T
It's unsafe :)
More info: https://github.com/japaric/bare-metal/issues/16
Bump. This is now purely a documentation change explaining why this would be unsafe.
Can we add an unsafe fn returning it?
This mirrors what the stdMutex
does.If this turns out to be unsafe, at least there should be a comment explaining why only a&T
is provided.