OpendTect-6_4  6.4
Public Member Functions | Private Attributes | List of all members
PerThreadObjectRepository< T > Class Template Reference

Class that keeps one object per thread. This enables temporary passing of objects (such as strings) where needed. More...

Inheritance diagram for PerThreadObjectRepository< T >:
[legend]

Public Member Functions

T & getObject ()
 

Private Attributes

ManagedObjectSet< T > objects_
 
ObjectSet< const void > threadids_
 
Threads::Lock lock_
 

Detailed Description

template<class T>
class PerThreadObjectRepository< T >

Class that keeps one object per thread. This enables temporary passing of objects (such as strings) where needed.

Member Function Documentation

template<class T >
T & PerThreadObjectRepository< T >::getObject ( )

Member Data Documentation

template<class T>
Threads::Lock PerThreadObjectRepository< T >::lock_
private
template<class T>
ManagedObjectSet<T> PerThreadObjectRepository< T >::objects_
private
template<class T>
ObjectSet<const void> PerThreadObjectRepository< T >::threadids_
private

Generated at for the OpendTect seismic interpretation project. Copyright (C): dGB Beheer B. V. 2019