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