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 | 1893 | June 13, 2023 | |
Task/thread-local caches/buffers | 12 | 579 | July 9, 2023 | |
Multi-threaded code requiring scratch space | 17 | 708 | February 14, 2024 | |
How to use many (non-sticky) tasks while maximizing local storage reuse? | 9 | 905 | August 1, 2023 | |
Thread safe memoization | 17 | 199 | August 18, 2025 |