FLINT3.7.0-dev

gr_ctx_is_threadsafe

Synopsis#include <flint/gr.h>
truth_t gr_ctx_is_threadsafe(gr_ctx_t ctx)source

Returns whether different threads may operate simultaneously on different elements of the ring with the same context; T_TRUE by default. Contexts that cache data without locking (for example gr_ctx_init_real_ca) return T_FALSE, and parallel generic algorithms then run serially.

Guides#

Cite this page

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