Skip to content

Struct TempLat::holdStaticGuard

ClassList > TempLat > holdStaticGuard

I wrapped this in a struct for a very specific case: If we have multiple translation units (cpp files) which include this header, and each calls getFFTSessionGuards, then we will have multiple static variables, one per translation unit, and the guards will not work as intended. By wrapping it in a struct, we ensure that there is only one instance of the static variable, no matter how many translation units include this header.

  • #include <fftlibraryselector.h>

Public Static Functions

Type Name
bool getSessionGuardsWasCalledOnce ()
An inline function for storing a static global variable in a header. A lock that verifies that we do not accidentally call the FFT initi/fin-alizations twice.

Public Static Functions Documentation

function getSessionGuardsWasCalledOnce

An inline function for storing a static global variable in a header. A lock that verifies that we do not accidentally call the FFT initi/fin-alizations twice.

static inline bool TempLat::holdStaticGuard::getSessionGuardsWasCalledOnce () 



The documentation for this class was generated from the following file cosmolatticeweb/tmp/code_source/templat/include/TempLat/fft/fftlibraryselector.h