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 | 1860 | June 13, 2023 | |
Task/thread-local caches/buffers | 12 | 571 | July 9, 2023 | |
Multi-threaded code requiring scratch space | 17 | 703 | February 14, 2024 | |
How to use many (non-sticky) tasks while maximizing local storage reuse? | 9 | 892 | August 1, 2023 | |
How to correctly design multi-thread cache that's transparent to user iteration? | 10 | 848 | May 31, 2023 |