CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Public Attributes
edm::gen::GenRunCache Struct Reference

#include <ConcurrentGeneratorFilter.h>

Public Member Functions

std::unique_ptr
< GenRunInfoProduct
release () const noexcept
 
 ~GenRunCache ()
 

Public Attributes

std::atomic< GenRunInfoProduct * >
product_ 
nullptr
 

Detailed Description

Definition at line 49 of file ConcurrentGeneratorFilter.h.

Constructor & Destructor Documentation

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

Definition at line 51 of file ConcurrentGeneratorFilter.h.

51 { delete product_.load(); }

Member Function Documentation

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  }

Member Data Documentation

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

Definition at line 50 of file ConcurrentGeneratorFilter.h.