# thread-local variables

* [thread_local!](https://doc.rust-lang.org/std/macro.thread_local.html)
* [RefCell](https://doc.rust-lang.org/std/cell/struct.RefCell.html)

{% embed include file="src/examples/threads/thread-local/src/main.rs" %}
{% embed include file="src/examples/threads/thread-local/out.out" %}

---

* thread_local!
* RefCell


