take_lock
TakeLock is a minimal, thread-safe container for passing ownership of a single Box<T> between threads.
It provides an atomic, lock-free way to put, take, or swap a value across threads.
This is implemented with a fairly straight forward use of atomics.
Example
use TakeLock;
use thread;
let lock = new;
let sender = ;
let receiver = ;
sender.join.unwrap;
receiver.join.unwrap;