CMS 3D CMS Logo

List of all members | Public Member Functions | Public Attributes
edm::gen::GenRunCache Struct Reference

#include <ConcurrentGeneratorFilter.h>

Public Member Functions

std::unique_ptr< GenRunInfoProductrelease () const
 
 ~GenRunCache ()
 

Public Attributes

std::atomic< GenRunInfoProduct * > product_ { 0 }
 

Detailed Description

Definition at line 49 of file ConcurrentGeneratorFilter.h.

Constructor & Destructor Documentation

edm::gen::GenRunCache::~GenRunCache ( )
inline

Definition at line 51 of file ConcurrentGeneratorFilter.h.

References product_.

51 { delete product_.load(); }
std::atomic< GenRunInfoProduct * > product_

Member Function Documentation

std::unique_ptr<GenRunInfoProduct> edm::gen::GenRunCache::release ( ) const
inline

Definition at line 56 of file ConcurrentGeneratorFilter.h.

References product_.

56  {
57  auto retValue = product_.load();
58  product_.store(nullptr);
59  return std::unique_ptr<GenRunInfoProduct>(retValue);
60  }
std::atomic< GenRunInfoProduct * > product_

Member Data Documentation

std::atomic<GenRunInfoProduct*> edm::gen::GenRunCache::product_ { 0 }
mutable

Definition at line 50 of file ConcurrentGeneratorFilter.h.

Referenced by release(), and ~GenRunCache().