GetFEM  5.4.2
dal_singleton.h File Reference

A simple singleton implementation. More...

#include <vector>
#include <memory>
#include "getfem_omp.h"

Go to the source code of this file.

Classes

class  dal::singleton< T, LEV >
 singleton class. More...
 

Namespaces

 dal
 Dynamic Array Library.
 

Detailed Description

A simple singleton implementation.

Author
Julien Pommier Julie.nosp@m.n.Po.nosp@m.mmier.nosp@m.@ins.nosp@m.a-tou.nosp@m.lous.nosp@m.e.fr
Date
May 2004. Singleton was made thread safe for OpenMP However, now there is a singleton instance for every thread (singleton is thread local). This replicates the behaviour of singletons in distributed MPI-like environment;

Definition in file dal_singleton.h.