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 51 of file ConcurrentHadronizerFilter.h.

Constructor & Destructor Documentation

◆ ~RunCache()

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

Definition at line 53 of file ConcurrentHadronizerFilter.h.

53 { delete product_.load(); }

References product_.

Member Function Documentation

◆ release()

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

Definition at line 58 of file ConcurrentHadronizerFilter.h.

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

References product_.

Member Data Documentation

◆ product_

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

Definition at line 52 of file ConcurrentHadronizerFilter.h.

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

edm::gen::RunCache::product_
std::atomic< GenRunInfoProduct * > product_
Definition: ConcurrentHadronizerFilter.h:52