CMS 3D CMS Logo

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

#include <ConcurrentHadronizerFilter.h>

Public Member Functions

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

Public Attributes

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

Detailed Description

Definition at line 51 of file ConcurrentHadronizerFilter.h.

Constructor & Destructor Documentation

edm::gen::RunCache::~RunCache ( )
inline

Definition at line 53 of file ConcurrentHadronizerFilter.h.

References product_.

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

Member Function Documentation

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

Definition at line 58 of file ConcurrentHadronizerFilter.h.

References product_.

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

Member Data Documentation

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

Definition at line 52 of file ConcurrentHadronizerFilter.h.

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