.. index:: pair: class; gpr::linalg::ScopedSerialEigenThreads .. _doxid-classgpr_1_1linalg_1_1_scoped_serial_eigen_threads: class gpr::linalg::ScopedSerialEigenThreads =========================================== .. toctree:: :hidden: Serialize callers that temporarily force :ref:`Eigen ` 's global thread budget to 1, restoring the previous budget when the outermost scope exits. Reentrant on the owning thread so nested scopes (e.g. :ref:`AtomicInducingPosterior ` calling :ref:`DenseLLTInverse `) neither deadlock nor restore early. Internal to libgpridge, not public API: only ``DenseLLTInverse.cpp`` and ``AtomicInducingPosterior.cpp`` use it, and no installed header declares or includes it, so this header is not installed. The class is hidden so the shared library's exported symbol set does not grow, and so no other module can depend on its layout. .. ref-code-block:: cpp :class: doxyrest-overview-code-block #include class ScopedSerialEigenThreads { public: // construction :target:`ScopedSerialEigenThreads`(); :target:`ScopedSerialEigenThreads`(const ScopedSerialEigenThreads&); :target:`~ScopedSerialEigenThreads`(); // methods :ref:`ScopedSerialEigenThreads`& :target:`operator=`(const :ref:`ScopedSerialEigenThreads`&); };