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 | 1644 | June 13, 2023 | |
Task/thread-local caches/buffers | 12 | 522 | July 9, 2023 | |
Multi-threaded code with :dynamic scheduler and mutable data | 5 | 861 | April 26, 2023 | |
How to use many (non-sticky) tasks while maximizing local storage reuse? | 9 | 841 | August 1, 2023 | |
Two Questions About Multithreading | 5 | 1753 | September 18, 2018 |