MADNESS 0.10.1
Functions
test_thread_specific.cc File Reference

Unit tests for madness::detail::thread_specific — the reclaimable per-thread storage backing the eval scratch buffers. More...

#include <madness/world/MADworld.h>
#include <madness/world/thread_specific.h>
#include <atomic>
#include <cstdio>
#include <mutex>
#include <set>
#include <thread>
#include <utility>
#include <vector>
Include dependency graph for test_thread_specific.cc:

Functions

int main (int argc, char **argv)
 

Detailed Description

Unit tests for madness::detail::thread_specific — the reclaimable per-thread storage backing the eval scratch buffers.

Covers: single-thread identity and seeding, clear()-reseeds (including that clear() invalidates a thread's cached fast-path slot via the generation stamp), and one distinct instance per concurrent thread.

Function Documentation

◆ main()

int main ( int  argc,
char **  argv 
)