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 noexcept
 
 ~RunCache ()
 

Public Attributes

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

Detailed Description

Definition at line 88 of file ConcurrentHadronizerFilter.h.

Constructor & Destructor Documentation

◆ ~RunCache()

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

Definition at line 90 of file ConcurrentHadronizerFilter.h.

References product_.

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

Member Function Documentation

◆ release()

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

Definition at line 95 of file ConcurrentHadronizerFilter.h.

References product_.

95  {
96  auto retValue = product_.load();
97  product_.store(nullptr);
98  return std::unique_ptr<GenRunInfoProduct>(retValue);
99  }
std::atomic< GenRunInfoProduct * > product_

Member Data Documentation

◆ product_

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

Definition at line 89 of file ConcurrentHadronizerFilter.h.

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