 |
OpendTect
6.6
|
Go to the documentation of this file.
44 #define _mDeclStaticString(nm) \
45 mDefineStaticLocalObject( StaticStringManager, nm##_ssm, ); \
46 BufferString& nm = nm##_ssm.getObject()
49 #define mDeclStaticString(nm) \
50 _mDeclStaticString(nm); \
51 addToStaticStringRepos( &nm )
53 #define mDeclStaticString(nm) \
54 _mDeclStaticString(nm)
70 int idx = threadids_.indexOf( threadid );
73 idx = threadids_.size();
74 threadids_ += threadid;
78 return *objects_[idx];
ObjectSet< const void > threadids_
Definition: perthreadrepos.h:37
Locks the lock, shutting out access from other threads if needed.
Definition: threadlock.h:85
#define mGlobal(module)
Definition: commondefs.h:180
Set of pointers to objects.
Definition: commontypes.h:31
Class that keeps one object per thread. This enables temporary passing of objects (such as strings) w...
Definition: perthreadrepos.h:28
T & getObject()
Definition: perthreadrepos.h:66
PerThreadObjectRepository< BufferString > StaticStringManager
Definition: perthreadrepos.h:42
Threads::Lock lock_
Definition: perthreadrepos.h:38
~PerThreadObjectRepository()
Definition: perthreadrepos.h:32
#define mClass(module)
Definition: commondefs.h:181
bool isStaticString(const OD::String *)
void deepErase(BufferStringSet &)
encapsulates the read-access-only part of strings in OD.
Definition: odstring.h:31
ObjectSet< T > objects_
Definition: perthreadrepos.h:36
A lock of a type that (hopefully) suits your needs. To use it, you need the Locker class.
Definition: threadlock.h:53
void addToStaticStringRepos(const OD::String *)
Generated at
for the OpendTect
seismic interpretation project.
Copyright (C): dGB Beheer B.V. 1995-2021