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

Public Attributes

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

Detailed Description

Definition at line 86 of file ConcurrentGeneratorFilter.h.

Constructor & Destructor Documentation

◆ ~GenRunCache()

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

Definition at line 88 of file ConcurrentGeneratorFilter.h.

References product_.

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

Member Function Documentation

◆ release()

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

Definition at line 93 of file ConcurrentGeneratorFilter.h.

References product_.

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

Member Data Documentation

◆ product_

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

Definition at line 87 of file ConcurrentGeneratorFilter.h.

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