An example of the same idea but without macros can be seen here: PSA: Thread-local state is no longer recommended; Common misconceptions about threadid() and nthreads() - #26 by Mason
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
| Multithreading with shared memory caches | 27 | 2046 | June 13, 2023 | |
| Task/thread-local caches/buffers | 12 | 635 | July 9, 2023 | |
| Two Questions About Multithreading | 5 | 1819 | September 18, 2018 | |
| Pattern for managing thread local storage? | 5 | 2195 | May 17, 2021 | |
| Use Dynamic Arrays (Vectors) during Multi-threading | 7 | 2091 | September 10, 2018 |