CMS 3D CMS Logo

Typedefs | Functions | Variables
Proxy.cc File Reference
#include <map>
#include <mutex>
#include "GeneratorInterface/Herwig7Interface/interface/Proxy.h"

Go to the source code of this file.

Typedefs

typedef std::map< ProxyBase::ProxyID, std::weak_ptr< ProxyBase > > ProxyMap
 

Functions

static ProxyMapgetProxyMapInstance ()
 

Variables

static std::mutex mutex
 

Typedef Documentation

◆ ProxyMap

typedef std::map<ProxyBase::ProxyID, std::weak_ptr<ProxyBase> > ProxyMap

Definition at line 10 of file Proxy.cc.

Function Documentation

◆ getProxyMapInstance()

static ProxyMap* getProxyMapInstance ( )
static

Definition at line 12 of file Proxy.cc.

References instance.

Referenced by ThePEG::ProxyBase::create(), ThePEG::ProxyBase::find(), and ThePEG::ProxyBase::~ProxyBase().

12  {
13  static struct Sentinel {
14  Sentinel() : instance(new ProxyMap) {}
15  ~Sentinel() {
16  delete instance;
17  instance = nullptr;
18  }
19 
21  } sentinel;
22 
23  return sentinel.instance;
24 }
static PFTauRenderPlugin instance
std::map< ProxyBase::ProxyID, std::weak_ptr< ProxyBase > > ProxyMap
Definition: Proxy.cc:10

Variable Documentation

◆ mutex

std::mutex mutex
static