FLINT3.7.0-dev

flint_shared_cache_lock, flint_shared_cache_unlock, flint_shared_cache_publish

Synopsis#include <flint/thread_support.h>
void flint_shared_cache_lock(flint_shared_cache_struct * cache)source
void flint_shared_cache_unlock(flint_shared_cache_struct * cache)source
void flint_shared_cache_publish(flint_shared_cache_struct * cache, void * version)source

The primitives that flint_shared_cache_ensure is built from. Under the lock, flint_shared_cache_publish makes version current, retires the previous version and registers the cache for flint_cleanup_master.

Cite this page

The FLINT team, “flint_shared_cache_lock, flint_shared_cache_unlock, flint_shared_cache_publish (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_lock.html (generated 2026-10-20).