gr_ctx_is_threadsafe
Synopsis
#include <flint/gr.h>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#
- Algorithms, complex mode and threads (
gr_dft)
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).
@misc{flint-doc-gr-gr-ctx-is-threadsafe,
author = {{The FLINT team}},
title = {{gr\_ctx\_is\_threadsafe (gr.h)}},
howpublished = {FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev},
year = {2026},
url = {https://flintlib.org/doc/gr/gr_ctx_is_threadsafe.html},
note = {Generated 2026-10-20}
}