CMS 3D CMS Logo

Typedefs | Functions | Variables
Proxy.cc File Reference
#include <map>
#include <boost/thread.hpp>
#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 boost::mutex mutex
 

Typedef Documentation

◆ ProxyMap

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

Definition at line 11 of file Proxy.cc.

Function Documentation

◆ getProxyMapInstance()

static ProxyMap* getProxyMapInstance ( )
static

Definition at line 13 of file Proxy.cc.

13  {
14  static struct Sentinel {
15  Sentinel() : instance(new ProxyMap) {}
16  ~Sentinel() {
17  delete instance;
18  instance = nullptr;
19  }
20 
22  } sentinel;
23 
24  return sentinel.instance;
25 }

References instance.

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

Variable Documentation

◆ mutex

boost::mutex mutex
static
instance
static PFTauRenderPlugin instance
Definition: PFTauRenderPlugin.cc:70
ProxyMap
std::map< ProxyBase::ProxyID, std::weak_ptr< ProxyBase > > ProxyMap
Definition: Proxy.cc:11