FLINT3.7.0-dev

flint_shared_cache_ensure

Synopsis#include <flint/thread_support.h>
void * flint_shared_cache_ensure(flint_shared_cache_struct * cache, flint_shared_cache_sufficient_t sufficient, flint_shared_cache_build_t build, void * args)source

Returns a version satisfying the request args: the current version if it is sufficient, and otherwise one built and published under the lock after checking the current version again. The returned version stays valid until flint_cleanup_master or flint_shared_cache_clear.

Cite this page

The FLINT team, “flint_shared_cache_ensure (thread_support.h),” FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev, 2026. https://flintlib.org/doc/thread_support/flint_shared_cache_ensure.html (generated 2026-10-20).