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 | 1965 | June 13, 2023 | |
Task/thread-local caches/buffers | 12 | 603 | July 9, 2023 | |
Two Questions About Multithreading | 5 | 1797 | September 18, 2018 | |
Pattern for managing thread local storage? | 5 | 2171 | May 17, 2021 | |
Use Dynamic Arrays (Vectors) during Multi-threading | 7 | 2071 | September 10, 2018 |