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 49 of file ConcurrentGeneratorFilter.h.

Constructor & Destructor Documentation

◆ ~GenRunCache()

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

Definition at line 51 of file ConcurrentGeneratorFilter.h.

51 { delete product_.load(); }

References product_.

Member Function Documentation

◆ release()

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

Definition at line 56 of file ConcurrentGeneratorFilter.h.

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

References product_.

Member Data Documentation

◆ product_

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

Definition at line 50 of file ConcurrentGeneratorFilter.h.

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

edm::gen::GenRunCache::product_
std::atomic< GenRunInfoProduct * > product_
Definition: ConcurrentGeneratorFilter.h:50